Red hat linux

Mount SSHFS In Redhat / CentoS

Step 1 – Enabling the kernel module
This is a simple step – all you need to do is run the following command as the root user:

Step 2 – Installing Fuse/SSHFS

Step 3 – Using SSHFS
The commands to use SSHFS are fairly simple. To mount a remote folder, use the following commands.

The directory, /remotedir , is where the remote servers’ files are visible, and can be edited if the user on the remote server has permissions to do so.

It is possible to use a private key for authentication as well. If you use a private key, make sure that you’ve set proper permissions on the identity file.

When finished, you can unmount the remote folder with this command.

Mount Directory on System Boot

Step 4 – If you want to mount remote filesystem automatically each time when your system reboots, Add following entry to /etc/fstab file. Make sure you have have key based ssh setup between remote and local system.

Leave a Reply

Your email address will not be published. Required fields are marked *