BindAddress
não é a opção desejada. De man ssh_config
:
BindAddress
Use the specified address on the local machine as the source
address of the connection. Only useful on systems with more than
one address.
O equivalente do arquivo de configuração de -R
é RemoteForward
:
RemoteForward
Specifies that a TCP port on the remote machine be forwarded over
the secure channel to the specified host and port from the local
machine. The first argument must be [bind_address:]port and the
second argument must be host:hostport. [...]
Com esta informação, a linha de comando
ssh -R 55555:localhost:22 user@host
traduz a seguinte sintaxe .ssh/config
:
Host host
HostName host
User user
RemoteForward 55555 localhost:22