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