SSH connection problem with "Host key verification failed..." error

I can connect to an additional Ubuntu equipment in my LAN using SSH. On both of after that computer is I mounted openssh-server yet from an additional Ubuntu computer system I can not connect to my computer using SSH and also I obtained this mistake:

Host key confirmation fell short

251
2022-06-08 06:12:42
Source Share
Answers: 4

Also occasionally there is scenario when you are working with serial console, after that examining over command in verbose setting -v will certainly show you /dev/tty does not exist, while it does.

ssh -v [email protected]

In above instance simply remove /dev/tty and also create a symlink of /dev/ttyS0 to /dev/tty.

rm /dev/tty
ln -s /dev/ttyS0 /dev/tty

As a choice, add id_rsa.pub to the remote area, so password is not motivated and also you get login accessibility.

13
2022-07-25 18:00:22
Source

In my instance, this was brought on by a udev trouble - there was no /dev/tty tool node. The remedy for me was simply:

sudo mknod -m 666 /dev/tty c 5 0
9
2022-06-09 01:11:37
Source

Well, it merely due to the fact that the 2nd ubuntu calls for link by key and also not password.

I recommend you make use of sudo dpkg-reconfigure openssh-server on your computer, and afterwards it needs to function effectively. It will certainly reset the configuration for openssh and also need to return to a default password verification.

2nd opportunity is that there is currently a key for your various other ubuntu in you computer, which it transformed hence being not identified any longer. In this instance, you'll need to modify the documents .ssh/authorized_keys to remove the bothersome line recognizing your ubuntu.

3
2022-06-08 06:25:16
Source

"Host key confirmation failed" suggests that the host key of the remote host was transformed.

SSH shops the host keys of the remote hosts in ~/.ssh/known_hosts. You can either modify that message documents by hand and also remove the old key (you can see the line number in the mistake message), or make use of

ssh-keygen -R hostname

From man page:

- R hostnameĀ¢ Removes all keys coming from hostname from a known_hosts documents. This alternative serves to delete hashed hosts.

(which I picked up from the response to Is it possible to remove a particular host key from SSH's known_hosts file?).

283
2022-06-08 06:24:01
Source