Helpful SSH tricks
CVS over an ssh connection.
If you want to access a CVS repository for a machine you have an account on, and don't want to transmit your password in clear text over X amount of the 'net, you can set up cvs to use ssh to talk to the server:
export CVS_RSH=ssh
If you want to talk to a non-standard port, you'll need to set up a section of your .ssh/config file for that host eg:
HostName example.com
Port 22000
will allow a connection to port 22000 of example.com:
Fetchmail over an ssh connection
Again, this is the solution if you can't get IMAP over ssl. If you have an account on the machine that you can access via ssh, then you can tunnel your IMAP or POP connection over it.
The best guide is Manish Singh's POP over SSH Mini-HOWTO. It works for IMAP too...
A couple of provisos:
- This is forwarding the POP/IMAP connection over to your local computer. Make sure you are polling localhost rather than your mail host.
- Most likely you will want to open a non-privileged and certainly non-standard port. Therefore you need to tell fetchmail both the port and the protocol.
The English text of this page is dedicated to the public domain.
Last modified: 25 June 2003