I can not connect automatically by ssh

ssh xx@xx.xx.xx.xx
Unable to negotiate with xx.xx.xx.xxport 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

Gotta run

ssh -oHostKeyAlgorithms=+ssh-dss xx@xx.xx.xx.xx
After that it works fine (I am connecting to a host with Сentos 6.9 operating system)

dsa is disabled by default in even remotely modern versions of ssh.

You can enable it but you really should be using something more secure.


This has been EoL for over a year - probably long overdue an upgrade/migration to Alma or Rocky 8.


Not in all systems. I saw this only on Manjaro and here. Latest versions: Debian 11, Rocky, Mint, Mx Linux, FreeBSD 13.0 ssh connects automatically to Centos 6.9.You just need to answer yes to the question by connection