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
本文介绍如何使用SSHFS命令将远程主机上的目录挂载到本地计算机,包括挂载步骤、卸载方法及添加至/etc/fstab的教程。
1596

被折叠的 条评论
为什么被折叠?



