How to Tunnel Through a Firewall
On your GNU/Linux or Macintosh computer, add the following line to the end of your /etc/inittab file: tunl:345:respawn:/usr/bin/ssh -n -N -T -R 6789:localhost:22 [email protected] 'me' with your username on the remote server, and...
Step-by-Step Guide
-
Step 1: On your GNU/Linux or Macintosh computer
If you have Windows, see Tips for suggestions.
You have to have first established this connection "by hand"
setting up shared-key authentication, in order for it to work unattended; if you can't type that same line starting with '/usr/bin/ssh' at the root command prompt and have it connect you to the remote server without any further input, this won't work. -
Step 2: add the following line to the end of your /etc/inittab file: tunl:345:respawn:/usr/bin/ssh -n -N -T -R 6789:localhost:22 [email protected] 'me' with your username on the remote server
, It's a two-step process: $ ssh [email protected] Then, when connected: $ ssh
-p 6789 home@localhostReplace 'home' in this example with your username on your home computer. -
Step 3: and 'my.remote.server' with the actual hostname or IP address of the server.
-
Step 4: Restart the init process to activate the line you just added: # init q
-
Step 5: From work
-
Step 6: or from any remote Internet location
-
Step 7: try connecting to your computer via ssh.
Detailed Guide
If you have Windows, see Tips for suggestions.
You have to have first established this connection "by hand"
setting up shared-key authentication, in order for it to work unattended; if you can't type that same line starting with '/usr/bin/ssh' at the root command prompt and have it connect you to the remote server without any further input, this won't work.
, It's a two-step process: $ ssh [email protected] Then, when connected: $ ssh
-p 6789 home@localhostReplace 'home' in this example with your username on your home computer.
About the Author
Jonathan Perez
Specializes in breaking down complex crafts topics into simple steps.
Rate This Guide
How helpful was this guide? Click to rate: