LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't log in to router using SSH v1 since domain name change (https://www.linuxquestions.org/questions/slackware-14/cant-log-in-to-router-using-ssh-v1-since-domain-name-change-548097/)

wabob 04-22-2007 01:31 PM

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?

Matir 04-22-2007 02:36 PM

Keys are generally held in $HOME/.ssh/known_hosts. You can delete the old key from there to prevent the error.

wabob 04-22-2007 03:14 PM

Thanks for the quick reply!
 
How would I clear that out? Would I do:

root# rm /etc/ssh/known_hosts ?

willysr 04-22-2007 07:57 PM

open it using vi or other text editor and remove the line which contain the host (it's actually one host per line)

Matir 04-22-2007 09:10 PM

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.