2) If you already have your RSA1 key generated (most probably ~/.ssh/identity and ~/.ssh/identity.pub files), go to point 3). Otherwise, generate the key, saving it in the default location with no passphrase:
mkdir -p ~/.ssh
ssh-keygen -t rsa1
3) Copy the public key (~/.ssh/identity.pub) to your AFS home directory at CERN
scp ~/.ssh/identity.pub USERNAME@lxplus.cern.ch:~
4) Log on to LXPLUS and run.
Note you must do this because you need to have links from ~/.ssh to
~/public/ for the public portion of your keys.
/afs/cern.ch/project/cvs/dist/bin/set_ssh
5) Add the PUBLIC key you
copied in 3. in your ~/.ssh/authorized_keys file with the following
command:
$ cat ~/identity.pub >> ~/.ssh/authorized_keys
Host lxplus.cern.ch lxplus
Protocol 2
PubkeyAuthentication no
PasswordAuthentication yes
Host atlas-sw.cern.ch atlas
Protocol 1
IdentityFile ~/.ssh/identity
ssh USERNAME@lxplus.cern.ch
ssh USERNAME@atlas-sw.cern.ch
export CVSROOT=':ext:USERNAME@atlas-sw.cern.ch:/atlascvs'Note that if you already had CVSROOT set for something else that you will be changing it.
export CVS_RSH='ssh'
(Thank you to Louis Poncet (IT/GD) for the idea of the config file.)