Monday, October 15, 2012

sshfs CentOS /RHEL/Fedora

This is a filesystem client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there's nothing to do.  On the client side mounting the filesystem is as easy as logging into the server with ssh.

  1. Login to your linux server as root
  2. Install fuse-sshfs
    #yum install fuse-sshfs -y
  3. Create a mount directory
    #mkdir /mnt/mountdir
  4. Mount the remote directory
    #sshfs user@ /mnt/mountdir/
    SSHFS will then ask you to authenticate with the password for the user account you supplied
  5. To unmount the drive:
    #umount /sshfs/mount/
Post a Comment