重新安装服务器后我无法安装它
sshfs root@domain.com:/var /remote_mount
fuse: bad mount point `/remote_mount': Transport endpoint is not connected
Run Code Online (Sandbox Code Playgroud)
# ssh root@domain.com
The authenticity of host 'domain.com (xxx.xxx.xxx.xxx)' can't be established.
ECDSA key fingerprint is 57:b6:bd:76:17:80:73:85:4a:14:8a:6f:dc:fa:fe:7c.
Are you sure you want to continue connecting (yes/no)?
Run Code Online (Sandbox Code Playgroud)
小智 52
在断断续续地使用 sshfs 多年后,第一次出现此错误并找到了此页面。所有的“设置 sshd”都没有多大帮助,因为 ssh 一直工作正常,直到突然没有。
然而,一些测试找到了解决方案。问题发生在失败的 sshfs 挂载请求中,其中包含错误的主机名。由于ls -l $mountpoint
此错误失败,我尝试使用 清除问题fusermount -u $mountpoint
,并且成功了!
失败后,我ls $mountpoint
在失败的 sshfs 后得到了一个简单的错误。
小智 24
我在使用 sshfs 一段时间后遇到了这个问题。此答案仅适用于在出现问题之前已成功使用 sshfs 的情况。
通常导致此问题的原因是您之前终止了连接,并且系统仍然/remote_mount
安装了。首先尝试做:
sudo umount /remote_mount
Run Code Online (Sandbox Code Playgroud)
然后再次尝试连接。