JiaLu - 2008-12-03

1, Create a private key and put it on SF
$ ssh-keygen -t dsa -C "USERNAME@shell.sourceforge.net"
Generating public/private dsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_dsa):
Created directory '/home/username/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/username/.ssh/id_dsa.
Your public key has been saved in /home/username/.ssh/id_dsa.pub.
The key fingerprint is:
f3:31:a8:c6:82:18:c8:0f:dd:6b:fb:27:98:83:3d:3b USERNAME@shell.sourceforge.net

Then copy your private key to SF on your account page.
REF:http://alexandria.wiki.sourceforge.net/SSH+Key+Generation

2, Connect to SF and create a shell for you
$ ssh -i PrivateKeyFile USERNAME,PROJECT@shell.sourceforge.net create
The authenticity of host 'shell.sourceforge.net (216.34.181.119)' can't be established.
RSA key fingerprint is b4:c5:6c:36:f7:ad:2c:23:52:e1:84:3e:77:61:5d:59.
Are you sure you want to continue connecting (yes/no)? yes
USER,PROJ@shell.sourceforge.net's password:
Requesting a new shell for "USERNAME" and exiting when it is ready.

queued... creating... starting...

That will take a few minutes.

3, Just connect to SF with SSH
$ssh -i PrivateKeyFile USERNAME@shell.sourceforge.net