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

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

  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值