安装sshfs
sudo apt-get install sshfs加载sshfs模块
sudo modprobe fuse设置权限
安装好sshfs后会自动添加一个组fuse,需要把自己的用户添加到该组并设置相应权限sudo adduser myuser fuse sudo chown root:fuse /dev/fuse sudo chmod +x /dev/fusermount错误:这里可能会出现错误
chmod: cannot access ‘/dev/fusermount’: No such file or directory
找不到文件fusermount,到/dev文件夹下也确实找不到该文件,所以出错解决方法:
whereis fusermount找到正确的路径之后再修改,比如我的是
/bin/fusermount,则执行命令
sudo chmod +x /bin/fusermount注销当前账户并重新登陆
然后就能正确挂载远程目录
sshfs <user>@<ip_address>:remote_dir local_dir
例如:cd mkdir remotedir sshfs pi@192.168.1.208:/home/pi remotedir接下来就能在
remotedir目录里面访问远程目录的文件
sshfs挂载远程目录及chmod: cannot access错误解决
最新推荐文章于 2026-06-19 13:29:49 发布
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
1331

被折叠的 条评论
为什么被折叠?



