【问题标题】:sshfs mount failing using fabric run commandsshfs 使用 fabric run 命令挂载失败
【发布时间】:2014-06-20 22:36:36
【问题描述】:

我正在尝试使用以下运行命令挂载 SSHFS

run("sshfs -o reconnect -C -o workaround=all localhost:/home/test/ /mnt")

它失败并出现以下错误

fuse: bad mount point `/mnt': 传输端点未连接

但是,如果我将其妖魔化,它会起作用。有什么解决办法吗?。

【问题讨论】:

  • 我会检查/mnt文件夹的程序权限。或者我会使用sudo

标签: python ssh fabric sshfs


【解决方案1】:

我终于发现 SSH 存在问题,需要传递 pty=False 标志。

run("sshfs -o reconnect -C -o workaround=all localhost:/home/test/ /mnt",pty=False)

【讨论】:

  • 如果需要传递密码怎么办?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-02-29
  • 2015-01-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-02-27
  • 2023-03-08
相关资源
最近更新 更多