Quantcast
Channel: scp (secure copy) to ec2 instance without password - Stack Overflow
Browsing all 17 articles
Browse latest View live

Answer by dheeraj kumar for scp (secure copy) to ec2 instance without password

To use PSCP, you need the private key you generated in Converting Your Private Key Using PuTTYgen. You also need the public DNS address of your Linux instance pscp -i C:\path\my-key-pair.ppk...

View Article



Answer by Shawn for scp (secure copy) to ec2 instance without password

In your case, the user root won't have any issues. But in certain cases where you're required to login under SSH as a different user, make sure the directory you're scp-ing has adequate permissions for...

View Article

Answer by Renato Coutinho for scp (secure copy) to ec2 instance without password

I've used below command to copy from local linux Centos 7 to AWS EC2. scp -i user_key.pem file.txt ec2-user@my.ec2.id.amazonaws.com:/home/ec2-user

View Article

Answer by amar essa for scp (secure copy) to ec2 instance without password

Just tested: Run the following command: sudo shred -u /etc/ssh/*_key /etc/ssh/*_key.pub Then: create ami (image of the ec2). launch from new ami(image) from step no 2 chose new keys.

View Article

Answer by Dele for scp (secure copy) to ec2 instance without password

scp -i ~/.ssh/key.pem ec2-user@ip:/home/ec2-user/file-to-copy.txt . The file name shouldnt be between the pem file and the ec2-user string - that doesnt work. This also allows you to reserve the name...

View Article


Answer by 庄景鹏 for scp (secure copy) to ec2 instance without password

write this code scp -r -o "ForwardAgent=yes" /Users/pengge/11.vim root@192.168.2.228:/root/ If you have a SSH key with access to the destination server and the source server does not, adding -o...

View Article

Answer by joseph.hainline for scp (secure copy) to ec2 instance without password

Making siliconerockstar's comment an answer since it worked for me scp -i kp1.pem ./file.txt ec2-user@1.2.3.4:/home/ec2-user

View Article

Answer by Yatender Singh for scp (secure copy) to ec2 instance without password

lets assume that your pem file and somefile.txt you want to send is in Downloads folder scp -i ~/Downloads/mykey.pem ~/Downloads/somefile.txt root@my.ec2.id.amazonaws.com:~/ let me know if it doesn't...

View Article


Answer by BuvinJ for scp (secure copy) to ec2 instance without password

I was hung up on this because I was specifying my public key file in scp -i [private key file path] When I caught that mistake and changed it to the private key path instead, I was all set.

View Article


Answer by fall14123 for scp (secure copy) to ec2 instance without password

My hadoopec2cluster.pem file was the only one in the directory on my local mac, couldn't scp it to aws using scp -i hadoopec2cluster.pem hadoopec2cluster.pem ubuntu@serverip:~. Copied...

View Article

Answer by Syed Priom for scp (secure copy) to ec2 instance without password

scp -i /path/to/your/.pemkey -r /copy/from/path user@server:/copy/to/path

View Article

Answer by Barkat for scp (secure copy) to ec2 instance without password

scp -i /home/barkat/Downloads/LamppServer.pem lampp_x64_12.04.tar.gz this will be very helpful to all of you guys

View Article

Answer by Hoff for scp (secure copy) to ec2 instance without password

I figured it out. I had the arguments in the wrong order. This works: scp -i mykey.pem somefile.txt root@my.ec2.id.amazonaws.com:/

View Article


scp (secure copy) to ec2 instance without password

I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created key file without password prompt, no problem. However, when I want to copy a file to the...

View Article

Answer by Jamil Noyda for scp (secure copy) to ec2 instance without password

copy a file from a local server to a remote serversudo scp -i my-pem-file.pem ./source/test.txt ec2-user@1.2.3.4:~/destination/ copy a file from a remote server to a local machinesudo scp -i...

View Article


Answer by Tejas Tank for scp (secure copy) to ec2 instance without password

For ec2 server#move your key to /tmp or right folder on serverAssign right permissionsudo chmod 600 /tmp/dev-sunrobotics-snippetbucketcom.pemthen connect to server or transferscp -i...

View Article

Answer by chaitanya for scp (secure copy) to ec2 instance without password

Please use this syntax to copy file using scp and keyscp -i [key_file_path] source_path user@hostname:[dest_path]

View Article

Browsing all 17 articles
Browse latest View live




Latest Images