There is a way that you can mount a folder on a remove server using the SSHFS service.
We start with by installing the required package:
sudo aptitude install build-essential libcurl4-openssl-dev libxml2-dev libfuse-dev comerr-dev libfuse2 libidn11-dev libkadm55 libkrb5-dev libldap2-dev libselinux1-dev libsepol1-dev pkg-config fuse-utils sshfs |
Add yourself to the fuse user group otherwise you will get a permission denied error later down the road:
sudo usermod -a -G fuse your_username |
Create a folder on your machine to be used as the mount point and make yourself owner of this folder:
sudo mkdir /mnt/your_mount_point sudo chown your_username:fuse /mnt/your_mount_point |
Finally mount your remote drive to the location:
// Mount remote dir /var/www sshfs your_remote_username@xx.xx.xx.xx:/var/www /mnt/your_mount_point |
However, the overhead of SSH encryption and compression can get in the way of transfer speeds. So on a trusted network, you can mount SSHFS like this:
sshfs your_remote_username@xx.xx.xx.xx:/var/www /mnt/your_mount_point -o cache=yes -o kernel_cache -o compression=no -o large_read -o Ciphers=arcfour |
More info about performance can be found here.