Can't log in to router using SSH v1 since domain name change
I had to change the domain name on my Cisco router, and since then my Slackware 11.0 PC cannot ssh in. I shut off / restarted the SSH server on the router (which re-generated a new rsa key required to log in), but I don't know how to get my Slackware PC client to delete the former key and create a new one so it can ssh in.
Any ideas? |
Keys are generally held in $HOME/.ssh/known_hosts. You can delete the old key from there to prevent the error.
|
Thanks for the quick reply!
How would I clear that out? Would I do:
root# rm /etc/ssh/known_hosts ? |
open it using vi or other text editor and remove the line which contain the host (it's actually one host per line)
|
rming the file would just remove ALL known host keys. As willysr said, just remove the one relevant line.
|
All times are GMT -5. The time now is 02:39 AM. |