可以用下列命令在Ubuntu上将远端的文件夹同步到本地,这样在本地修改文件就相当与在远端修改.sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa tao@192.168.1.101:/home/tao/open-user/kernel /home/tao/linux如果提示下面的错误fuse: mountpoint is not emptyfuse: if you are sure this is safe, use the 'nonempty' mount option就表示你本地的文件夹例如/home/tao/linux 不是空的。将这个文件夹里面的文件删掉即可