SshLink
Easy port-forwarding through SSH tunnels

General
Home
Download
Documentation
Contact
 
Development
Project page
CVS access
Bug reports

A well-known method to connect a host that remains behind a firewall is using a SSH backlink with a remote port forwarding. While that's a fairly easy task, sshlink makes it simpler.

Examples

Imagine you want to create a ssh link from your computer to host1 (web access) and host2 (SSH access), with sshlink user and /etc/sshlink.identity for RSA/DSA identity file (with 12345 for passphrase).

Sample sshlink.conf
# Configuration file for sshlink

[default]
ssh_command="ssh -i /etc/sshlink.identity -l sshlink -o StrictHostKeyChecking=no"
log_time=3600
checkalive_time=30

# Examples

[host1]
ssh_args="-R 8080:localhost:80 host1.net"
#connect=yes

[host2]
ssh_args="-R 2222:localhost:22 host2.net"
#connect=yes

Uncomment connect parameters and run sshlink from command line. You should be able to access from host1 (web service through port 8080) and host2 (SSH service through port 2222).

Copying

Copyright © 2006-2007 Arnau Sanchez. Free use of sshlink is granted under the terms of the GNU General Public License (GPL).