linux之sshfs

0. ubuntu安装:sudo apt-get install sshfs -y

0. redhat安装sshs

yum install -y fuse-sshfs

如果找不到这个软件,需要重装epel-release

yum remove -y epel-release

yum install -y epel-release

 

1.挂载

sshfs shiyu@g22:/mfs/shiyu/ ~/mfs # sshfs -o allow_other来允许他人访问

 

2.卸载

fusermount -u ~/mfs
For macos: umount /mfs

 

posted @ 2018-05-08 17:03  Shiyu_Huang  阅读(401)  评论(0编辑  收藏  举报