Hi. I'm hoping someone might be able to shed some light on my situation.
Earlier today I decided it would be a good idea to change the keys I log into SSH with. It turns out it wasn't a great idea after all.
I used ssh-keygen and generated these keys:
ssh_host_rsa_key
ssh_host_dsa_key
Then just to make things interesting I forgot the password(s) I entered. I got 2 tries and then DenyHosts cut me off for good.
Now, after fiddling around I can now login to my node through LISH but not through my SSH client. When I try, it just disconnects me.
Here's what I have tried so far:
Delete everything in /etc/hosts.deny
Quote:
echo > /etc/hosts.deny
Check IPtables to see if I'm listed in there.
Quote:
iptables -L -n
Quote:
Nothing's in there (at all).
Hmm.. Let's delete all the keys and start over.
Quote:
rm /etc/ssh/ssh_host*
Now generate some new keys (remember them this time)! Then save them to /etc/ssh/
Quote:
ssh-keygen -t rsa
<snip>
ssh-keygen -t dsa
<snip>
Try using my SSH client to login.. Nope! Disconnected right away.
Let's take a look at my auth.log
Quote:
May 26 18:56:19 FUS sshd[1612]: error: Could not load host key: /etc/ssh/ssh_host_key
May 26 18:56:19 FUS sshd[1612]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
May 26 18:56:19 FUS sshd[1612]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
I'm so lost I don't know where to go from here. Can anybody help? Am I missing a step somewhere?
Thanks