У меня была подобная проблема однажды, я должен был добавить свой локальный хост моего/etc/hosts.
127.0.0.1 ComputerName localhost
::1 ComputerName localhost
Это решило проблему замедления на моей установке Linux дуги.
BindAddress
не тот вариант, который вам нужен. С 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.
Конфигурационный файл, эквивалентный -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. [...]
С этой информацией командная строка
ssh -R 55555:localhost:22 user@host
переводит в следующий .ssh/config
синтаксис:
Host host
HostName host
User user
RemoteForward 55555 localhost:22