Update to OpenSSH on cs.kuleuven.be
Introduction
We are switching to a new/up to date version of SSH (OpenSSH_2.9p1, SSH protocols 1.5/2.0).During this process we take the opportunity to update/change some misconfigurations of the previous years:
- Due to an error in the early ssh implementations some host keys did claim to be 1024 bits long, but were only 1023 bits long. These keys have been replaced by new correctly sized (=1024 bits) ones.
- Due to our old installation procedure some hosts did use identical host keys. These keys have been changed for all but one host.
How will you notice this and what should you do
When you connect with ssh to a host with a such new key, your ssh client will notice that the key (identity) of the server you are trying to connect to, has changed. It will warn you about this.This could be an indication that somebody is eavesdropping on your connection and you should be careful only to accept this connection after verifying that this changed key actually belongs to the server you are connecting to.
For more information, please also read the section about the server key.
You should verify this key signature :
- yourself (if you can connect to the server in another way):
alien ~ 518$ ssh-keygen -l -f /etc/ssh/ssh_host_key.pub 1024 88:8a:ae:23:91:9e:0a:93:21:b5:42:6a:7b:37:3a:34 root@alien alien ~ 519$ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub 1024 23:e1:8c:c0:17:82:d7:b8:b2:e4:f3:49:f9:4c:3e:94 /etc/ssh/ssh_host_rsa_key.pub alien ~ 520$ ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub 1024 43:f5:7d:dd:ae:66:66:e8:60:cd:d9:6a:24:59:d9:7c /etc/ssh/ssh_host_dsa_key.pub
Places where openssh expects your keys and authorized hosts.
(See also the section about ssh keys)
If you use ssh1 keys nothing has changed, since
- keys are stored by default in /etc/.ssh/identity[.pub]
- authorized keys are stored in /etc/.ssh/authorized_keys
- your ssh2 keys are stored in /etc/.ssh/id_dsa[.pub]
- your ssh2 authorized keys are stored in /etc/.ssh/authorized_keys2
I did not find a way to convert a private key from old ssh2 to openssh format, just generate a new one with (beware this is not the fingerprint of my real key ;-)):alien ~ 524$ ssh-keygen -X -f .ssh2/hostkeys/key_22_midgard.pub >>.ssh/authorized_keys2
alien ~ 528$ ssh-keygen -d Generating public/private dsa key pair. Enter file in which to save the key (/home/jean/.ssh/id_dsa): /tmp/id_dsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/jean/.ssh/id_dsa. Your public key has been saved in /home/jean/.ssh/id_dsa.pub. The key fingerprint is: 1b:27:67:f4:ea:5b:3c:33:fb:9e:8f:4f:d1:6d:46:ca jean@alien

