SSHFS is a tool that uses SSH to enable mounting of a remote filesystem. Here is how you set it up.
$ sudo apt-get install sshfs
$ sudo gpasswd -a $USER fuse
$ mkdir ~/remote_ssh_host
$ sshfs -o idmap=user $USER@remote_ssh_host:/directory ~/remote_ssh_host
$ cd ~/remote_ssh_host
Yes, awesome!
To unmount,
$ fusermount -u ~/remote_ssh_host
$ sshfs#$USER@far:/directory /home/$USER/remote_ssh_host fuse defaults,idmap=user 0 0
Keep Alive
Your ssh session will automatically log out if it is idle. To keep the connection active (alive) add this to ~/.ssh/config or to /etc/ssh/ssh_config on the client.
ServerAliveInterval 5
This will send a "keep alive" signal to the server every 5 seconds (I use 120).
Links: