Rsync to Amazon Ec2 Instance

前端 未结 5 968
面向向阳花
面向向阳花 2020-12-07 18:52

I have an EC2 instance running and I am able to SSH into it.

However, when I try to rsync, it gives me the error Permission denied (publickey).

The command

5条回答
  •  情歌与酒
    2020-12-07 19:37

    This worked for me:

    nohup rsync -zravu --partial --progress  -e "ssh -i xxxx.pem" ubuntu@xx.xx.xx.xx:/mnt/data   /mnt2/ &
    

提交回复
热议问题