git 配置SSH error: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
2017-10-26 00:04
1636 查看
1、设置Git的user name和email
git config --global user.name "myname"
git config --global user.email "myname@xxx.com"
2、生成密钥
ssh-keygen -t rsa -C "myname@xxx.com"
连续三次回车即可,可在~/.ssh 目录下看到id_rsa和id_rsa.pub(公钥)
3、添加公钥到远程仓库(github,gerrit等)
直接复制id_rsa.pub里面的内容到账户下面的ssh keys,然后add即可
4、拉取远程代码或者其他操作,但是此时windows系统可能会报如下错误:
no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
编辑~/.ssh/config文件,添加下列内容保存即可:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
出错的原因是由于windows下模拟的linux console等原因造成的
git config --global user.name "myname"
git config --global user.email "myname@xxx.com"
2、生成密钥
ssh-keygen -t rsa -C "myname@xxx.com"
连续三次回车即可,可在~/.ssh 目录下看到id_rsa和id_rsa.pub(公钥)
3、添加公钥到远程仓库(github,gerrit等)
直接复制id_rsa.pub里面的内容到账户下面的ssh keys,然后add即可
4、拉取远程代码或者其他操作,但是此时windows系统可能会报如下错误:
no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
编辑~/.ssh/config文件,添加下列内容保存即可:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
出错的原因是由于windows下模拟的linux console等原因造成的
相关文章推荐
- git:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- repo init 报错:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- 更新macOS Sierra后,解决:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- 解决:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- 解决:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
- git clone代码时提示:no matching key exchange method found
- git clone出现unbale to negotiate with 192.168.53.31 no matching key exchange method found
- git出错"no matching key exchange method found"
- Git 常见问题: unable to negotiate with *.*.*.*: no matching key exchange methodfound...
- Cisco路由器登陆失败: Their offer diffie-hellman-group1-sha1
- Git error: Unable to negotiate with X.X.X.X : no matching host key type found . their offer: ssh-dss
- no matching key exchange method found
- mac升级10.13后git不可用问题 no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc
- 超级终端连接debian8 下的ssh 出现 “server does not support diffie-hellman-group1-sha1 for keyexchange”
- Unable to negotiate with legacyhost: no matching key exchange method found.
- Unable to negotiate with XX.XX.XX.XX: no matching host key type found. Their offer: ssh-dss
- 解决Unable to reach a settlement: [diffie-hellman-group1-sha1, diffie-hellman-group-exchange-sha1] and [curve25519-sha256@li