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

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

$
0
0
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 of the copied file.


Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>