项目场景:
xshell7无法远程连接linux虚拟机
问题描述
终端输入systemctl start sshd
启动报错:
输入sshd -t
查看具体报错信息:
解决方案:
输入ssh -Q cipher
,查看ssh使用了哪些ciphers:
复制结果
输入vim /etc/ssh//sshd_config
找到ciphers ,将其注释
添加Ciphers ,然后将复制的结果用逗号分隔,添加在其后面
即:
Ciphers 3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
结果如图:
重新启动sshdsystemctl start sshd
重新尝试Xshell连接