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
Похоже, что gprof
может быть тем, что вы ищете. Это поможет при отладке, чтобы выяснить, сколько времени занимает функция.
Возможно, вы также захотите проверить этот ответ по обмену стеком