Step 1:
Use the below command to copy the file using SCP with key pair to EC2 Instance:
scp -i path/to/key file/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/file.
Step 2:
Use the below command to copy the directory to EC2 Instance:
scp -i path/to/key -r directory/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/directory
Like this:
Like Loading...
Related
Published by Raghavendra Seshumurthy
My name is Raghavendra Seshumurthy. Presently I am working as a technolgy manager for Microland Organization. I have experience on security/cloud products: F5, Checkpoint, ASA, PA, AWS, Bluecoat, VPN, PITC, Zscaler, Azure, GCP, network, security, cloud. This blog is created just to share thoughts on new technologies and features in the network, security and cloud environment.
View all posts by Raghavendra Seshumurthy