Add localhost explicitly as bind_address

This commit is contained in:
Jose Gracia 2024-09-27 10:51:56 +02:00
parent 8e4d21fdbd
commit c0d97c883d

View file

@ -33,10 +33,10 @@ Tunnels are associated to _ports_. In the following, you will have to specify a
Ok, let's do it.
The following will open a regular ssh connection to Hawk. In addition, the argument `-R $MY_PROXY_PORT` will establish a reverse port forwarding tunnel which opens at port `$MY_PROXY_PORT` on the Hawk side and provides a SOCKS5 proxy.
The following will open a regular ssh connection to Hawk. In addition, the argument `-R localhost:$MY_PROXY_PORT` will establish a reverse port forwarding tunnel which opens at port `$MY_PROXY_PORT` on the Hawk side and provides a SOCKS5 proxy.
```bash
local> MY_PROXY_PORT=XXXX # choose a port number between 10000 and 60000
local> ssh -R $MY_PROXY_PORT hawk.hww.hlrs.de
local> ssh -R localhost:$MY_PROXY_PORT hawk.hww.hlrs.de
```
The tunnel will remain open as long as the connection to Hawk is open. The tunnel will close as soon as your connection closes. Please note, that we do recommend to _not use_ command line arguments to keep the connection open in the background as you may loose track of open reverse tunnels.