Skip directly to content

ssh

How to tunnel CVS over SSH

on Sun, 2009-02-08 01:54

This mini-HOWTO explains how to tunnel CVS by port forwarding with OpenSSH.

I’m developer at the Drupal shop NodeOne and have contributed several modules. I therefore access Drupals CVS server on regular basis. From time to time, I am behind a firewall that blocks the port 2401 used by CVS. To solve that, I setup port forwarding to tunnel the CVS protocol oveh SSH. This is how I do:

Setup an SSH tunnel to listen at 2401 on my machine, the localhost, which is behind the firewall, and forward to another machine, here called openhost, that has CVS access through 2401:

How to login on SSH without password

on Sat, 2009-01-17 12:36

This mini-HOWTO explains how to login with OpenSSH without password.

To login on a remote server without being prompted for password, you need to store your public key on the server. If you don’t already have a public key, you need to generate a public/private key pair. To do that, just run following command:

ssh-keygen

This will prompt you for a location to save the keys, and a pass-phrase. Just accept te defaul values, i.e. ~/.ssh/id_rsa and empty pass-phrase.

When you have a public key, it is just a matter of running following command to copy the public key to te server:

Tags: