ssh, VNC, and IMAP secure tunneling

I run an IMAP server in the garage so that I can have my e-mail and folders in a central location. I have a domain name that I point to and use ddclient to update the IP address. From Windows, I access the IMAP using an ssh tunnel with the fine PuTTY ssh client. From Linux, I just use the command line. I setup a local ssh IMAP tunnel to the potter machine which sets up the tunnel via the localhost:
$ sudo ssh -L143:potter:143

I can then read email using Mozilla Thunderbird by configuring IMAP to use localhost on the standard port (143).

Happy Jet

ssh tunneling is also handy for troubleshooting. To do remote troubleshooting, a remote desktop control tool is need, and I use Tight VNC. To launch a Tight VNC session to help my wife restart the printer queue, I run:
$ ssh -L5901:wilbur:5900
$ xtightvncviewer -encodings "tight copyrect" localhost:1

Simple, right?

About skarg

I write software for a living. So, I dedicated some web space for some stuff that I have worked on. I mostly write embedded C for PC based controllers, but I have dabbled in a few other areas as well.
This entry was posted in applications, Linux. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *