Happy new year to all,
I installed a fresh xubuntu to my computer. Before fresh xubuntu I can connect ssh to my old xubuntu from my vera. But with fresh one I cannot connect from my vera. It says;
root@MiOS_50000000:~# ssh 192.168.4.61
ssh: Connection to root@192.168.4.61:22 exited:
ecdsa-sha2-nistp256 host key mismatch for 192.168.4.61 !
Fingerprint is sha1!! 95:62:ae:23:56:f1:de:00:4e:f5:03:aa:52:08:e1:0a:4a:2d:d1:a6
Expected
Remove any entry(-ies) for 192.168.4.61 from your known_hosts file (often ~/.ssh/known_hosts), then try again. It should say the authenticity of the host canât be established, show you the fingerprint, and ask you if itâs OK (to which you should answer yes).
Already remove keys but not succeed (stop ssh then restart ssh again) then uninstall then install open ssh again but still not succeed. known_hosts both user and root is emty but connection is not still possible.(ecdsa-sha2-nistp256 host key mismatch for 192.168.4.61 !)
By the way I can ssh connection from my vera to another host like 192.168.4.55 but when I try to ssh from my vera to 192.168.4.61 it gives me same error;
root@MiOS_50000000:~# ssh 192.168.4.61
ssh: Connection to root@192.168.4.61:22 exited:
ecdsa-sha2-nistp256 host key mismatch for 192.168.4.61 !
Fingerprint is sha1!! 95:62:ae:23:56:f1:de:00:4e:f5:03:aa:52:08:e1:0a:4a:2d:d1:a6
Expected
I install fresh xubuntu again a hour ago but nothing changed. It seems something wrong at vera box but what is?
There is two files in /etc/dropbear at vera box. These are âdropbear_ecdsa_host_keyâ and âdropbear_rsa_host_keyâ. Should I erease them or something else?
Itâs the way I learned. For a newbie you did well. I assume you were using command line, ssh and some kind of editor like vi or nano. Many would have failed at the lack of a GUIâŠ
Yes, I use all from terminal. I make a scene that vera shout down my xubuntu pc with os.execute(" ssh -y -i ~/.ssh/id_rsa root@192.168.4.61 sudo /sbin/poweroff" )
You could probably simplify that. You should be able to run just:
ssh root@192.168.4.61 /sbin/poweroff once you get everything sorted out.
But itâs generally regarded as bad practice to have ssh for root enabled. And when I say âgenerallyâ and âbad practiceâ itâs more like 'you should really not have root able to log in by ssh. It makes hacking your system a lot simpler if you already know the usernameâŠ
Been a long time since I saw a Linux distro that had sshd configured to allow root login.