问题:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

在git clone 项目的时候, 竟然报错了:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

那么,想要解决此问题, 则需要在用户目录下的 .ssh文件夹下新建一个 config 文件,添加:

  Host *

  KexAlgorithms +diffie-hellman-group1-sha1

  

然后,再重新执行 git clone :

至此, git clone 成功, 问题解决!

原文地址:https://www.cnblogs.com/suwyer/p/9256102.html

时间: 2024-07-31 11:08:14

问题:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1的相关文章

Diffie-Hellman Key Exchange – A Non-Mathematician’s Explanation

The Complete Diffie-Hellman Key Exchange Diagram The process begins when each side of the communication generates a private key. Each side then generates a public key (letter B), which is a derivative of the private key. The two systems then exchange

Password authencated key exchange based on lattice for C/S model&&Resistance to quantum computers

Password authented key exchange based on lattice for C/S model l&& Resistance to quantum computers 1.Research background In view of the fact that the rapid development of quantum computer technology poses serious threat to the security of the trad

PuTTY 错误:“expected key exchange group packet

使用 PuTTY 通过 SSH 访问出现错误:"expected key exchange group packet from server". 解决:在 PuTTY 的左侧窗格中,导航到"连接" > SSH > Kex.在算法选择策略下,选择 "Diffie-Hellman group exchange".单击向下.此操作会将"Diffie-Hellman group exchange"移出第一个位置,以更改所用

navicat使用ssh登录mysql报错:expected key exchange group packet from server

一.navicat ssh连接方式 由于公司使用的是阿里云的RDS,需要通过内网连接数据库(不直接提供公网访问),此时可以使用navicat的ssh方式,通过一台跳板机连接内网的RDS 二.连接报错及解决方式 报错:SSH: expected key exchange group packet from server 解决方式: 1.升级navicat 2.修改sshd的配置 01 02 [[email protected] ~]#vim /etc/ssh/sshd_config  #编辑ssh

DH密钥交换(Diffie–Hellman key exchange)算法笔记

注意:只是笔记,可能有不正确的地方 ?下文中^代表乘方运算,例如2^3=2*2*2=6,参考:http://zh.wikipedia.org/wiki/%E5%86%AA %代表模运算,例如5%3=2,参考:http://zh.wikipedia.org/wiki/%E6%A8%A1%E9%99%A4? DH密钥交换算法的作用是使通信双方可以在不安全的通道中建立一个相同的密钥,用于加密通信. 基本原理示例: 1.通信方A和通信方B约定一个初始数g,g是公开的,如g=5 2.A生成一个随机数a,a

gerrit升级到16.04之后连接不到服务器

升级到ubuntu-16.04后,发现Git-review代码报错: Unable to negotiate with 10.140.110.77 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1fatal: Could not read from remote repository. Please make sure you have the correct ac

ssh免口令密码登录及兼容性处理

client ---> server 客户端发起对服务器的连接,登录服务器. 须在客户端生成密钥对 注意: 公钥加密私钥解:私钥加密公钥解. 可以发布公钥,但私钥是不能出本机的. 把公钥给谁就授信谁,信任谁的身份. $ ssh-keygen -t rsa 不需要给passphrase,同时初次会在用户家目录下生成.ssh/,且生成id_rsa和id_rsa.pub两个文件. 也可以使用如下命令 $ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa 将客户端的公钥复

ubuntu16.04问题 · 最初的梦想

ubuntu 包管理器命令 1 $ sudo synaptic 安装主题 1 $ sudo apt-get install unity-tweak-tool 下载主题 https://www.sysgeek.cn/additional-icon-packs-linux/删除软件命令 1 $ sudo apt-get --purge atuoremove <pagename> 搜索指定字符串命令 1 $ grep -rn "search string" 安装flash播放器(

https那些事儿

(一)SSL/TLS协议运行机制的概述 一.作用 不使用SSL/TLS的HTTP通信,就是不加密的通信.所有信息明文传播,带来了三大风险. (1) 窃听风险(eavesdropping):第三方可以获知通信内容. (2) 篡改风险(tampering):第三方可以修改通信内容. (3) 冒充风险(pretending):第三方可以冒充他人身份参与通信. SSL/TLS协议是为了解决这三大风险而设计的,希望达到: (1) 所有信息都是加密传播,第三方无法窃听. (2) 具有校验机制,一旦被篡改,通