sshfs指令可以通過ssh協議掛載遠程主機上的目錄,該軟件需要手動安裝。
sshfs 2.3的版本安裝如下
wget http://sourceforge.net/projects/fuse/files/sshfs-fuse/2.3/sshfs-fuse-2.3.tar.gz/download
wget tar xf download cd download ./configure && make && make install #此時會報錯如下 configure: error: Package requirements (fuse >= 2.3 glib-2.0 gthread-2.0) were not met: No package 'fuse' found No package 'glib-2.0' found No package 'gthread-2.0' found 缺少包,fuse模塊是sshfs使用的前提 解決方法如下: yum -y install fuse fuse-* glib2 glib2-* 簡單使用如下: sshfs -o cache=yes,allow_other,password_stdin=123456 [email protected]:/root /mnt echo 123456 | sshfs -o cache=yes,allow_other,password_stdin [email protected]:/root /mnt