Install sshfs 3.5.2 on CentOS 8 / RHEL 8

sshfs

Hi,

Before we start let’s check , what is sshfs ?

“SSHFS allows you to mount a remote filesystem using SFTP. Most SSH servers support and enable this SFTP access by default, so SSHFS is very simple to use – there’s nothing to do on the server-side. ”

Without further delay , lets start .

We need to download latest release file from sshfs gitlab repository

# cd /tmp/ ; wget https://github.com/libfuse/sshfs/releases/download/sshfs-3.5.2/sshfs-3.5.2.tar.xz

For this demonstration , we are using version 3.5.2.

Untar it,

# tar -xf sshfs-3.5.2.tar.xz

# cd sshfs-3.5.2

Before compiling it , we need to download dependency packages.

Ninja , Meson and Fuse3

# pip3 install meson ninja

# yum install fuse3 fuse3-devel -y

Compile and install

# mkdir build ; cd build

# meson ..

# ninja install

Thats it!.

Now sshfs binary file is copied to your system binary location.

How to use?

# sshfs user@remoteip:/directory /mountpoint

Eg:  sshfs james@10.0.1.1:/home/james/Downloads /mnt

Check mount details ,

# df -hT

james@10.0.1.1:/home/james/Downloads fuse.sshfs 8.0G 3.2G 4.8G 41% /mnt

How to unmount?

# umount /mountpoint

or

# fusermount -u /mountpoint

 

Try with your lab system. Hope you like this demonstration.

Thanks and see you guys.

One Comment Add yours

  1. Bodun says:

    Hmm… Thanks, but… Why don’t you install sshfs from Centos repo? Just
    dnf install fuse-sshfs
    All you need is enable CentOS PowerTools repositorium.

    Like

Leave a comment