cat >> /etc/ssh/sshd_config <<EOF
KexAlgorithms +diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1
EOF
sudo systemctl restart ssh
WARNING: No any other purpose,keeping reminded! So sorry to offended,if necessary, contact me and I do change what I had done to protect your privileges!