目录
一、问题描述
实在忍受不了centos查找系统rpm 的痛苦经历,果断回到ubuntu。安装完Ubuntu22.04使用SecureCRT连接报错如下图:

二、解决方法
1、升级SecureCRT版本。
我的升级到了 SecureCRT 9.4 亲测有效,如果无效请检查如下设置。
选项=> 编辑默认会话=> 连接=> SSH2=> 密钥交换=> 选中所有加密方式
如下图所示:

2、修改服务器,使其兼容老系统的算法
vi /etc/ssh/sshd_config, 在末尾添加以下行:
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
HostKeyAlgorithms +ssh-rsa
重启sshd服务,使配置生效后连接,OK!
systemctl restart sshd.service
或者
service sshd restart
1万+

被折叠的 条评论
为什么被折叠?



