Hotw to tunnel by ssh from local server to remote One.

Taken From :

ssh -f -L -N

(working example ssh -f root@ -L -N)
The -f tells ssh to go into the background just before it executes the command. This is followed by the username and server you are logging into. The -L is in the form of -L local-port:host:remote-port. Finally the -N instructs OpenSSH to not execute a command on the remote system.

To kill tunnel use:

 netstat -anp | grep 8585    —–> find process ID
kill -9 process ID

Leave a Reply

Your email address will not be published.

Antispam Question * Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.