我正在尝试使用以下运行命令挂载 SSHFS
run("sshfs -o reconnect -C -o workaround=all localhost:/home/test/ /mnt")
并且失败并出现以下错误
fuse: bad mount point `/mnt': Transport endpoint is not connected
但是,如果我妖魔化它是有效的。有什么解决办法吗?
最佳答案
我最终发现 SSH 有问题,需要传递 pty=False 标志。
run("sshfs -o reconnect -C -o workaround=all localhost:/home/test/ /mnt",pty=False)
关于python - 使用 Fabric run 命令安装 sshfs 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24317368/