openssh升级后xshell登录报错

openssh升级后不能登录问题

 

xshell提示:服务器发送了一个意外的数据包

查看sshd的服务提示:kex protocal error: type 30 seq 1 lpreauth1

 

openssh升级后xshell登录报错

使用xshell工具连接linux设备报错如下:

openssh升级后xshell登录报错

openssh升级后xshell登录报错

由于升级后客户端的算法与服务器侧的算法不匹配导致,解决方法为升级客户端侧的加密算法或者对服务器侧的加密算法进行修改:

#该配置一定要在Cipher and keying模块出添加,否则会报错,详见下图

KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellma