SSHFS: How do you install sshfs on CentOS/Linux/Redhat

What is sshfs and why would you want it? Well simply put, sshfs allows you to mount another server’s filesystem into a folder on your local system which in the background is doing ssh commands and transfers.
As a mounted folder, you are able to move about and copy files back and forth as everything was on local server. As you can see this makes it very easy for you to work with files on multiple servers.

Note: you only have to do the following installations on the server where you are doing the mounts on.

Let us download and install the filesystem framework which is a requirement for sshfs called fuse.

yum -y install kernel-devel fuse fuse-ntfs-3g dkms dkms-fuse

Once installed, you will have to find out the directory it is installed in

At this point we can try doing the mount again.
cd /mnt
sshfs test

If you do not get any errors, do df -h to see the mount:
sshfs# 1000G 0 1000G 0% /mnt/test

No comments:

Post a Comment