Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用以下运行命令挂载 SSHFS
run("sshfs -o reconnect -C -o workaround=all localhost:/home/test/ /mnt")
它失败并出现以下错误
保险丝:错误的挂载点`/mnt':传输端点未连接
但是,如果我妖魔化它就可以了。有什么解决办法吗?
我最终发现 SSH 存在问题,需要传递 pty=False 标志。
run("sshfs -o reconnect -C -o workaround=all localhost:/home/test/ /mnt",pty=False)