Инвертируйте туннель ssh в конфигурации

У меня была подобная проблема однажды, я должен был добавить свой локальный хост моего/etc/hosts.

127.0.0.1       ComputerName localhost
::1             ComputerName localhost

Это решило проблему замедления на моей установке Linux дуги.

16
14.10.2014, 21:58
1 ответ

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
29
27.01.2020, 19:48

Теги

Похожие вопросы