Hi,

I wanted to try a ssh downgrade attack, but I'm having trouble with creating the keys. See the configs below

root@kali:/etc/ssh# nano /etc/ssh/sshd_config
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 1,2
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#Privilege Separation is turned on for security
#UsePrivilegeSeparation yes

#Hostkeys for protocol version 1
Hostkey /etc/ssh/ssh_host_key

root@kali:/etc/ssh# ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N testpassword
Generating public/private rsa1 key pair.
/etc/ssh/ssh_host_key already exists.
Overwrite (y/n)? y
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
9e:78:49:37:4f:fb:84:8c:43:86:61:3e:f2:76:47:00 root@kali
The key's randomart image is:
+--[RSA1 2048]----+
| E |
| . |
| o . |
| o o . |
| . S = o |
| * B B o |
| . B + * . |
| o . o o |
| . |
+-----------------+


root@kali:/etc/ssh# service ssh restart
Could not load host key: /etc/ssh/ssh_host_key
Disabling protocol version 1. Could not load host key
[....] Restarting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_key
Disabling protocol version 1. Could not load host key
. ok

root@kali:/etc/ssh# ls -l | grep host_key
-r-------- 1 root root 974 Mar 4 12:12 ssh_host_key
-rw-r--r-- 1 root root 639 Mar 4 12:12 ssh_host_key.pub

There is actually data in the ssh_host_key file too. So I do not understand why I am getting this error. Please advise.