From c0d97c883dba57a88eea10dd3ef4ec222f2c3258 Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Fri, 27 Sep 2024 10:51:56 +0200 Subject: [PATCH] Add localhost explicitly as bind_address --- guides/Best_practice--Connecting_Hawk_to_the_world.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/Best_practice--Connecting_Hawk_to_the_world.md b/guides/Best_practice--Connecting_Hawk_to_the_world.md index 20d0b0e..86a0af8 100644 --- a/guides/Best_practice--Connecting_Hawk_to_the_world.md +++ b/guides/Best_practice--Connecting_Hawk_to_the_world.md @@ -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.