【ssh登陆问题】no matching cipher found / no matching key exchange method found

2023-11-06

no matching cipher found / no matching key exchange method found 解决方法
修改ssh配置文件,添加相应设置即可

1.ssh 加密方法和密钥交换方式登陆设置方法

本地ssh需要进行设置

# 针对用户设置
vi ~/.ssh/config 
# or 针对系统设置
sudo vi /etc/ssh/ssh_config 

文件最后添加密钥交互算法,提示缺啥就添加啥:

# Host *
KexAlgorithms +diffie-hellman-group1-sha1
Ciphers 3des-cbc

或者直接在.ssh/目录下添加config文件

# Host * #所有ip
# Host xxx.xxx.xxx.xxx #指定ip
Ciphers 3des-cbc # xxx 各种密码加密方法
KexAlgorithms +diffie-hellman-group1-sha1
# user xxx
# Host xxx.xxx.xxx.xxx
# Port 22 # 或对应服务器的ssh端口

ref:
ssh:完整参考:https://www.iteye.com/blog/purplefairy-xxshi-2267874
私钥:https://blog.csdn.net/qq_15174755/article/details/91359200
cipher——Terminal找不到支持的密钥交换方法:https://blog.csdn.net/nellyp/article/details/83150460
https://www.cnblogs.com/tozh/p/10388023.html
key exchange method:https://blog.csdn.net/xzx_kag/article/details/53768136
https://blog.csdn.net/zhouyan8603/article/details/78348358
https://blog.csdn.net/u011983700/article/details/81738657

在这里插入图片描述
pic from pexels.com

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

【ssh登陆问题】no matching cipher found / no matching key exchange method found 的相关文章

随机推荐