Tag Archives: the server sent an unexpected packet. RECEIVED:3

Xshell remote SSH error: the server sent an unexpected packet. RECEIVED:3,EXPECTED:20

Recently, a Kirin learning system was installed, and SSH was configured normally. It was found that remote learning was not possible

The Solution is to modify an SSH configuration file:

1. Update or install SSH

yum -y install openssh

2. Edit the configuration file, delete the last [Kex beginning] string of characters, and then copy this sentence in again

KexAlgorithms curve25519- [email protected] ,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

vi /etc/ssh/sshd_config

End insert

KexAlgorithms curve25519- [email protected] ,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

3. After saving, restart the service and connect again

systemctl restart sshd