How to install sshfs on CentOS 7?

sshfs is a nice tool. But it seems there is no support to it in a newly installed CentOS 7 Linux system:

Not installed by default:

# sshfs
-bash: sshfs: command not found

Seems not available from the repositories

# yum install sshfs -y
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                                                                                                            | 3.6 kB  00:00:00     
extras                                                                                                                                                          | 3.4 kB  00:00:00     
updates                                                                                                                                                         | 3.4 kB  00:00:00     
(1/2): extras/7/x86_64/primary_db                                                                                                                               | 165 kB  00:00:00     
(2/2): updates/7/x86_64/primary_db                                                                                                                              | 7.8 MB  00:00:00     
Determining fastest mirrors
 * base:
 * extras:
 * updates:
No package sshfs available.
Error: Nothing to do

And nothing found

# yum search sshfs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Warning: No matches found for: sshfs
No matches found

How to install sshfs on CentOS 7?

The software package for sshfs is proved in EPEL.

To install sshfs, first, enable EPEL following instructions here.

Then, install sshfs by

# yum install fuse-sshfs

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

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