LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-22-2007, 01:31 PM   #1
wabob
LQ Newbie
 
Registered: Mar 2007
Location: Somewhere in Michigan
Distribution: Slackware, Ubuntu, SUSE
Posts: 16

Rep: Reputation: 0
Unhappy 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?
 
Old 04-22-2007, 02:36 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Keys are generally held in $HOME/.ssh/known_hosts. You can delete the old key from there to prevent the error.
 
Old 04-22-2007, 03:14 PM   #3
wabob
LQ Newbie
 
Registered: Mar 2007
Location: Somewhere in Michigan
Distribution: Slackware, Ubuntu, SUSE
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the quick reply!

How would I clear that out? Would I do:

root# rm /etc/ssh/known_hosts ?
 
Old 04-22-2007, 07:57 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
open it using vi or other text editor and remove the line which contain the host (it's actually one host per line)
 
Old 04-22-2007, 09:10 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
rming the file would just remove ALL known host keys. As willysr said, just remove the one relevant line.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 02:27 AM
PAM - only allow domain group members to log on via ssh? humbletech99 Linux - Networking 3 01-24-2006 11:53 AM
cant log onto my samba domain rtg2001 Linux - Networking 7 08-19-2004 07:13 PM
domain name log in problems new_user10 Linux - Newbie 2 06-14-2004 01:03 PM
change nameserver domain on ssh ? maxboost Linux - Networking 1 10-07-2003 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration