SSHFS (Secure SHell FileSystem) is a file system for GNU/Linux, BSD and other UNIX like OS that allows you to mount a remote directory in userspace (filesystem userspace) making use of FUSE and ssh. Once you mounted the remote directory you can do any operation over it as if it were a local DIR.
$ sudo apt-get install sshfs
You must enable EPEL repo
# dnf install fuse-sshfs
To mount a filesystem:
sshfs [user@]host:[dir] mountpoint [options]
If host is a numeric IPv6 address, it needs to be enclosed in square brackets.
To unmount it:
Mount remote dir /var/www/flossblog into local dir flossblog with default options.
$ sshfs sedlav@flossblog.com:/var/www/flossblog flossblog
To mount the remote file system after reboot add this line to the fstab
user@host:dir mountpoint sshfs _netdev,noexec,nosuid,nodev,idmap=user,identityfile=path-to-private-key,port=23,allow_other,default_permissions,ServerAliveInterval=15 0 0
Options