您的位置:首页 > 其它

在 Ubuntu 上使用 sshfs 映射远程 ssh 文件系统为本地磁盘

2014-04-16 10:59 399 查看
Now, assuming that you have an SSH server running
on a remote machine, simply run the SSHFS command to mount the remote directory. In this example, the remote directory is
/projects
on remote host
far
.
The local mount point is `~/far_projects`.
mkdir ~/far_projects
sshfs -o idmap=user $USER@far:/projects ~/far_projects


To unmount,
fusermount -u ~/far_projects


To add it to your
/etc/fstab
,
sshfs#$USER@far:/projects /home/$USER/far_projects fuse defaults,idmap=user 0 0
 http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SSHFS&variant=zh-cn[/code]
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: