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
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
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.
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.
"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?).