当我与命令行连接时,sshfs可以工作:
jack@lap:~$ sshfs jack@192.168.0.10:/home/jack/LanDrive ~/LanDrive
但是,当我试图通过fstab安装它的时候,我可以这样做:
sshfs jack@192.168.0.10:/home/jack/Tabernash/040/home/jack/Tabernash fuse _netdev,delay_connect,allow_other,default_permissions,noauto,IdentityFile=~/.ssh/id_rsa 0 0
或
jack@192.168.0.10:/home/jack/Tabernash/040/home/jack/Tabernash fuse default_permissions,noauto,IdentityFile=~/.ssh/id_rsa 0 0
然后
$ sudo findmnt --verify --verbose
返回以下内容:
fuse
[E] unreachable on boot required target: No such file or directory
[ ] FS options: 0
[W] unreachable source: jack@192.168.50.10:/home/jack/Tabernash/040/home/jack/Tabernash: No such file or directory
[W] default_permissions,noauto,IdentityFile=~/.ssh/id_rsa seems unsupported by the current kernel
[W] cannot detect on-disk filesystem type
我尝试过很多其他的变体,但它从来没有起作用。
客户端是运行Ubuntu20.04的桌面,服务器是运行Ubuntu 20.10的Raspberry Pi 4。
有什么建议吗?
发布于 2021-02-08 17:45:45
你看过系统坐骑吗?
# /etc/systemd/system/media.mount (Naming is important)
[Unit]
Description=Mount remote /media with sshfs
Before=cron.service
[Install]
WantedBy=multi-user.target
[Mount]
What=ssh@home.local:/media/
Where=/media
Type=fuse.sshfs
Options=_netdev,allow_other,IdentityFile=/root/.ssh/ssh@home.mount,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount,uid=1000,gid=1000
TimeoutSec=60
[Install]
WantedBy=multi-user.target
https://askubuntu.com/questions/1314527
复制相似问题