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.