现象:
处理方法:
vi /usr/local/secure/openssh/etc/sshd_config
必须ps进程所在的ssh的config里加,比如/usr/local/secure/openssh/etc/sshd_config这个里面 不要盲目的/etc/ssh/sshd_config里加 在这加了也没用 看实际情况
多数的ssh 8.6或者以下的SSH可以用下面的密钥
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
8.8的SSH用下面的密钥
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
HostKeyAlgorithms=+ssh-rsa,ssh-dss
KexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
systemctl restart sshd