将文件移动到cygwin中的其他目录时权限被拒绝

时间:2017-08-04 10:17:58

标签: linux cygwin

我正在将文件newp从目录Lenovo移动到Users,表示在cygwin中拒绝了权限。

 Lenovo@Aditya /cygdrive/c/Users/Lenovo
    $ mv newp ../
    mv: cannot move 'newp' to '../newp': Permission denied

如何更改权限?

1 个答案:

答案 0 :(得分:0)

Steps to make this work: 1.)Generate the SSH keys from ssh-keygen. 2.)Enter to the remote server and in that create a folder named .ssh/authorized_keys. 3.)Copy paste the key in the remote server's authorized_key folder. 4.)Run command rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress hello.txt ec2-user@xx.xx.xxx.xx:/home/ec2-user Note: hello.txt is a file that is created, which is to transfer to remote server. Follow this link here to get the more idea.