Ubuntu 22.04 下使用ssh登录提示no hostkey alg

在/etc/ssh/sshd_config里写入:

HostKeyAlgorithms +ssh-rsa

PubkeyAcceptedKeyTypes +ssh-rsa

Categories: 系统运维