SSH is a very convenient tool on Linux that can be used to [[port-forwarding-using-ssh-tunnel]], [[proxy-using-ssh-tunnel]] and others besides its basic functions (remote shell). We can also use SSH to mount a remote folder to a local directory.
We can use `sshfs` to mount remote folder through SSH tunnel securely over network.
Table of Contents
Install `sshfs` by yum:
$ sudo yum install sshfs
Mount folder on sever to local folder
Then we can use `sshfs` to mount a remote directory:
$ sshfs username@server:/path/to/folder /path/to/mount/point
We can unmount the directory by `fusermount`:
$ fusermount -u /path/to/mount/point