Record of some of the computer tech I deal with so that it's documented at least somewhere.

Wednesday 25 February 2009

SSH config - getting protocol 1 to work

slap:/etc/ssh# ed /etc/ssh/sshd_config
/^Proto
s/^.*/Protocol 2,1
/dsa
a
# HostKey for protocol version 1
HostKey /etc/ssh/ssh_host_key
.
w
q

slap:/etc/ssh# ssh-keygen -t rsa1
Generating public/private rsa1 key pair.
Enter file in which to save the key (/root/.ssh/identity): /etc/ssh/ssh_host_key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.

slap:/etc/ssh# kill `ps axw | grep sbin/sshd | grep -v grep | awk ' { print $1} '` && /usr/sbin/sshd

No comments: