【发布时间】:2016-11-14 23:29:15
【问题描述】:
autossh -M 10984 -v -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -R 6889:localhost:22 user@rpi.local
上述命令有效。下面的没有。
autossh -M 10984 -E /home/pi/ssh.log -v -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -R 6889:localhost:22 user@rpi.local
它说,
/usr/lib/autossh/autossh: invalid option -- 'E'`
在将日志文件传递给 autossh 时如何将其指定为 SSH 选项?
【问题讨论】:
-
选项应该被传递给
ssh。你用的是什么版本? -
我正在使用 autossh 版本 1.4d。我也对 1.4e 版本进行了同样的尝试。结果相同。
-
我刚刚使用了包管理器。我在 Raspberry Pi 2 上运行 Raspbian。我在笔记本电脑上运行 Arch Linux。