sshfs is an external tool and can be installed with sudo apt install -yq sshfs.


You server is at example.com. To mount a directory from server, execute

sshfs example.com:<remote dir> <local dir>.

Both <remove dir> and <local dir> must exist. And <local dir> must be empty.

Disk space is occupied in the remote server, not in local.

To unmount, use fusermount -u <local dir>.


To auto reconnect and periodically ping server, in order to prevent disconnection. Add this flag -o reconnect,ServerAliveInterval=30,ServerAliveCountMax=100 after sshfs.