相关疑难解决方法(0)

SSHFS 自动挂载权限被拒绝

我正在尝试使用 /etc/fstab 在两台 Ubuntu 机器之间建立 SSHFS 连接,以便它们从一开始就自动挂载。

我在两台机器的主目录中创建了一个 .ssh 目录,我创建了 id_dsa 和 id_dsa.pub 文件,并将密钥复制到每台机器的一个名为authorized_keys的文件中。我已将目录权限设置为 700,将文件设置为 600。

我已编辑 /etc/fuse.conf 以便取消注释 user_allow_other。

这是我在客户端计算机上的 /etc/fstab 中的条目格式,这是我从这里获得的

sshfs#myname@www.myhome.com:/home/myname    /mnt/sshfs/homebox    fuse    comment=sshfs,noauto,users,exec,uid=1000,gid=1000,allow_other,reconnect,transform_symlinks,BatchMode=yes 0 0
Run Code Online (Sandbox Code Playgroud)

但是,每当我尝试挂载服务器时,都会收到此错误:

fusermount: failed to open /etc/fuse.conf: Permission denied
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
Run Code Online (Sandbox Code Playgroud)

如前所述,我已经取消了 user_allow_other 的注释,所以这个错误更令人费解。

我还需要做什么?

fstab mount 11.10 sshfs

13
推荐指数
1
解决办法
2万
查看次数

标签 统计

11.10 ×1

fstab ×1

mount ×1

sshfs ×1