|
It's 3 a.m. and you have been paged by one of your monitoring systems that another service is down. Your employer requires extreme security. There is no modem pool behind your firewall with which you can get inside, and no one can justify the cost of a VPN to your CEO. That means it's time to drive down to the office and hope your keycard still works. Here's an alternative. This article explains how to use an SSH tunnel and port forwarding to securely reach systems inside a firewall-protected network by originating a secure outbound SSH connection. One Tool, One MissionSSH (Secure Shell) version 2 can create encrypted tunnels over a single TCP port and securely forward traffic through that tunnel. Most administrators know SSH as a secure replacement for telnet, but it can also securely carry many other protocols.
Assumptions
Making It HappenFrom your office workstation:
This command maps port 32000 on your home system back to port 23 (telnet) on your office workstation through an encrypted SSH tunnel. Once connected, you can test the reverse tunnel from home:
You should now see the login prompt from your office workstation. Advanced Port ForwardingSSH can forward multiple services simultaneously:
This forwards:
ConclusionSSH is one of the most powerful tools available to UNIX administrators. Used correctly, it allows secure remote administration without exposing internal systems directly to the public Internet. David Beecher is a Sr. UNIX Systems Administrator with experience in electronics, robotic control systems, assembly language programming, and UNIX infrastructure. |
||