autossh -L失败与ssh相同的命令,如何使其工作?

我在最新的更新上运行yum在fedora core 15上安装了autossh 1.4a。

这工作:

ssh -L 9000:valid.fqdn:80 another_valid_fqdn 

但是,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. Environment variables are: AUTOSSH_GATETIME - how long must an ssh session be established before we decide it really was established (in seconds) AUTOSSH_LOGFILE - file to log to (default is to use the syslog facility) AUTOSSH_LOGLEVEL - level of log verbosity AUTOSSH_MAXSTART - max times to restart (default is no limit) AUTOSSH_MESSAGE - message to append to echo string (max 64 bytes) AUTOSSH_PATH - path to ssh if not default AUTOSSH_PIDFILE - write pid to this file AUTOSSH_POLL - how often to check the connection (seconds) AUTOSSH_FIRST_POLL - time before first connection check (seconds) AUTOSSH_PORT - port to use for monitor connection AUTOSSH_DEBUG - turn logging to maximum verbosity and log to 

任何想法,我可能会得到autossh工作? 根据使用的消息,它应该只是直接采取SSH选项。

显示器端口显然不是可选的。 尝试autossh -M 0 -L 9000:host:80 ssh_host