puzzling.org · mary.gardiner.id.au · Macquarie University

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 CVSROOT=:ext:username@machine.address:/cvsdirectory
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:

Host example
HostName example.com
Port 22000

will allow a connection to port 22000 of example.com:

export CVSROOT=:ext:username@example:/cvsdirectory

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:

  1. This is forwarding the POP/IMAP connection over to your local computer. Make sure you are polling localhost rather than your mail host.
  2. 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.

Last modified: 25 June 2003