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...

7 Steps 1 min read Medium

Step-by-Step Guide

  1. 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.
  2. 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.
  3. Step 3: and 'my.remote.server' with the actual hostname or IP address of the server.

  4. Step 4: Restart the init process to activate the line you just added: # init q

  5. Step 5: From work

  6. Step 6: or from any remote Internet location

  7. 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

J

Jonathan Perez

Specializes in breaking down complex crafts topics into simple steps.

94 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: