Lots of Linux and Unix power users know how to share remote directories with Samba or NFS. Unfortunately, more and more malicious hackers get access to servers through these ways of sharing. For example, if somebody got one of Trojan horse’s access to your Windows machine and you access your server through it, there is a fat chance that the remote directories may be infiltrated to.
There is a solution to that. You can share your remote directories through the SSH file system. You just need to make sure that your remote server is running SSH (which it usually does) and that it is accessible to your user account on a client machine.
If all this is true, you will need to install with your yum software that is called fuse-sshfs. Then, naturally, you will need to create a mount point – a directory on your client machine for mounting data from a remote server to your local directory.
When you are done with these simple tasks, you can start mounting the remote directory like that:
sshfs email@example.com:/var/yourremotefolder /mnt/yourlocalfolder
As soon as you finish your work and want to unmount the remote directory, you will need to use the following fusermount command:
fusermount -u /mnt/yourlocalfolder
This solutions will be much safer for communications between Linux machines due to the nature of SSH encryption. Try it, I guarantee that you will like it.