原因:Debian12 系统自带的 OpenSSH_9.2p1 版本较高,对低版本CRT客户端密钥交换算法不支持。
解决思路:增加 OpenSSH 对低版本CRT客户端密钥的支持。
在 /etc/ssh/sshd_config 文件中追加以下两行文本
HostKeyAlgorithms ssh-dss,ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Categories:
系统运维