我想sshfs
在登录时自动挂载目录。因此,我将这行添加到我的其他配置文件的末尾:
/usr/bin/sshfs [email protected]:/klipp klipp
然而这导致
Error found when loading /home/he/.profile
并且没有挂载目录。已与 建立 SSH 信任.ssh/authorized_keys
。
如果在登录后发出该命令,则不会出现故障。感谢您提供任何提示。
答案1
我会尝试插入挂载点的完整路径。例如:
/usr/bin/sshfs [email protected]:/klipp /home/he/klipp