Mailinglist Archive: opensuse (1445 mails)

< Previous Next >
Re: [opensuse] ssh connection refused since upgrading to 12.1
On 04/03/12 13:16, James Knott wrote:
Bob Williams wrote:
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.

I was tempted to suggest deleting the entire file, but that means you'd
have to accept each key again. As I mentioned, you should be able to
find the one line for that system and deleting only it. Each line
starts with the host name or IP address followed by ssh-rsa as shown below: ssh-rsa

That is indeed the structure of the known_hosts file on my desktop
machine, but here on my laptop the same file gives no indication of
which key relates to which host. Hence I deleted both lines (there are
only two machines here that I use ssh with, so it is not onerous to
accept new keys).

After accepting the new key, the file looks much the same, with two
lines but no identification of host.

I have left the lines wrapped, but each one starts with |1|:


In vi, you can simply move down through the lines (or search) until
you're on the correct one and then delete the entire line.

Bob Williams
Sent from my laptop
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >