- 安装sshfs包
$ # if your system is just the 'centos', you just need to run yum $ sudo yum install -y sshfs
- 将用户增加到fuse组
$ # If the current user is not in fuse, when we try to mount, you would meet 'permission' error. $ # If the 'fuse' group does not exist, we need to create one group 'fuse' and then add $ sudo usermod -a -G fuse wlin usermod: group 'fuse' does not exist $ sudo groupadd fuse $ sudo usermod -a -G fuse wlin
- 实施挂载
$ # The 'mountpoint' can be anywhere not just under /mnt dir $ # Now let me mount one remote file to the local dir $ mkdir ROR_Blog_testing $ cd ROR_Blog_testing $ sshfs wlin@10.66.137.45:/home/wlin/ROR_Blog .
-
停止挂载
$ unmount ROR_Blog_testing
-
若希望
使用SSHFS挂载远端目录
最新推荐文章于 2024-07-01 15:52:02 发布
本文介绍了如何在Linux系统中安装SSHFS工具,并详细讲解了将用户添加到fuse组、实施挂载远程目录的步骤,以及如何设置自动挂载。
摘要由CSDN通过智能技术生成