I recently had a need to create a permanent SSH tunnel between Linux servers. My need was to allow regular non-encrypted MySQL connections over an encrypted tunnel, but there could be many other uses as well. Google can identify plenty of resources regarding the fundamental SSH commands for port forwarding but I didn’t ever find a good resource for setting up a connection and ensuring that it remains active, which is what I hope to provide here...
ssh
Permanent SSH Tunnel Between Linux Servers
Submitted by sandip on Sat, 01/16/2010 - 22:36Secure browsing with SSH Tunnel and SOCKS Proxy Forwarding
Submitted by sandip on Tue, 07/28/2009 - 00:19$ ssh -D 9999 username@ip-address-of-ssh-server
This will create a SOCKS proxy on port “9999″ of your computer (localhost). This is a secure tunnel to the server. Now all you have to do is set the preference in Firefox to use a SOCKS proxy. The proxy is, “localhost”, with the port 9999.
Using Rsnapshot and SSH
Submitted by philiph on Tue, 01/20/2009 - 00:51An excellent tutorial on how to configure secure remote backups using rsnapshot and root ssh. Includes details on all the steps necessary to secure your root ssh keys and limit access.
rsnapshot - Local/Remote Filesystem backups utility in openSUSE
Submitted by susegeek on Mon, 10/06/2008 - 16:01rsnapshot is a filesystem backup utility based on rsync. Using rsnapshot, it is possible to take snapshots of your filesystems at different points in time. Using hard links, rsnapshot creates the illusion of multiple full backups, while only taking up the space of one full backup plus differences. When coupled with ssh, it is possible to take snapshots of remote filesystems as well.