Wednesday 30 December 2015

To copy the local files to Remote Linux Server (Amazon EC2 Instance)

To copy the local files to Remote Linux Server (Amazon EC2 Instance) :

First, generate and dowmnload the ec2-instance-key-pair.pem file form AWS EC2 to your computer.
To do that follow the instruction here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html

Then run the below command by locating the .pem file and name of file to copy and location of directory into and AWS server:

scp -i /c/KeyFolderPath/ec2-instance-key-pair.pem /c/Users/YourFolderPath/instantclient-basic-linux.x64-11.2.0.4.0.zip ec2-username@ec2-198-51-100-1.compute-1.amazonaws.com:/home/destination_folder_path

To find more information here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html

No comments:

Post a Comment

Please post any queries and comments here.