Mailinglist Archive: opensuse (1445 mails)

< Previous Next >
Re: [opensuse] ssh connection refused since upgrading to 12.1
On 04/03/12 01:44, Carl Hartung wrote:
On Sun, 04 Mar 2012 01:00:47 +0000
Bob Williams <linux@xxxxxxxxxxxxxxxxxxxxx> wrote:

On 11.4 I had ssh working perfectly without passwords between my
laptop and my desktop. Since upgrading the desktop to 12.1, ssh from
the laptop to the desktop fails because the remote server's host key
has changed.


Add correct host key in /home/bob/.ssh/known_hosts to get rid of this
Host key verification failed.

I'm not sure which file to copy onto my USB stick and where to put it
(~/.ssh/known_hosts probably, but nothing I've put there so far has

There must be a simpler way of solving this problem, because most
situations will involve hosts separated by significant distances,
rather than being in the same room.

Any suggestions, please?


I believe there's another sentence in the error message that you've
trimmed out. It lists the failing key and gives the exact commandline
string to use to delete it from your known_hosts file. Once it's
deleted, you ssh into the system, again, accept the new key and you
should be good to go.

Yes, you are quite right. However, that ssh-keygen command didn't work.
It created a known_hosts_old file which was identical to the original,
not removing anything.

There were two lines in the file, so I eventually followed James' advice
and deleted each one. When I had an empty file, my ssh command worked.

So, thank you both for your help, not sure why the 'official' way didn't
work here.

Bob Williams
System: Linux 3.1.9-1.4-desktop
Distro: openSUSE 12.1 (x86_64) with KDE Development Platform: 4.7.2
(4.7.2) "release 5"
Uptime: 06:00am up 1 day 18:05, 5 users, load average: 0.03, 0.05, 0.09
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups