我正在使用最新更新在 fedora core 15 上运行 yum 安装的 autossh 1.4a。
这有效:
ssh -L 9000:valid.fqdn:80 another_valid_fqdn
Run Code Online (Sandbox Code Playgroud)
但是,autossh 失败并打印其使用消息:
ssh -L 9000:valid.fqdn:80 another_valid_fqdn
usage: autossh [-V] [-M monitor_port[:echo_port]] [-f] [SSH_OPTIONS]
-M specifies monitor port. May be overridden by environment
variable AUTOSSH_PORT. 0 turns monitoring loop off.
Alternatively, a port for an echo service on the remote
machine may be specified. (Normally port 7.)
-f run in background (autossh handles this, and does not
pass it to ssh.)
-V print autossh version and exit. …Run Code Online (Sandbox Code Playgroud)