scp (secure copy) to ec2 instance without password

前端 未结 14 1824
野性不改
野性不改 2020-12-02 03:32

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, whe

14条回答
  •  执笔经年
    2020-12-02 04:04

    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 work

提交回复
热议问题