OpenSSH升级到7.0+遇到的问题
2017-03-13 17:22
477 查看
1、当用git 执行git pull –rebase
遇到:
Unable to negotiate with xx.xx.xx.xx port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决:
执行git clone 或者git pull前一步执行:
export GIT_SSH_COMMAND=’ssh -o KexAlgorithms=+diffie-hellman-group1-sha1’
2、git commit 的时候change id丢失(默认已具备gerrit的使用技能)
scp -P29418 xx@xx.xx.xx:hooks/commit-msg .git/hooks
遇到:
Unable to negotiate with xx.xx.xx.xx port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
原因:不能复制commit-msg文件,server端的OpenSSH还是老版本的,client已经用了7.0+了(很有可能已经用了新的2016款Mac,自带的OpenSSH已经是7.0+),当然很多时候我们并不能控制server端的版本。
解决:
(1)在之前的工程.git/hooks/commit-msg复制到新项目中(注意:不是这个文件commit-msg.sample)
(2)执行命令
chmod +x .git/hooks/commit-msg
echo “\nThe commit-msg hook was added to git hooks”
遇到:
Unable to negotiate with xx.xx.xx.xx port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决:
执行git clone 或者git pull前一步执行:
export GIT_SSH_COMMAND=’ssh -o KexAlgorithms=+diffie-hellman-group1-sha1’
2、git commit 的时候change id丢失(默认已具备gerrit的使用技能)
scp -P29418 xx@xx.xx.xx:hooks/commit-msg .git/hooks
遇到:
Unable to negotiate with xx.xx.xx.xx port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
原因:不能复制commit-msg文件,server端的OpenSSH还是老版本的,client已经用了7.0+了(很有可能已经用了新的2016款Mac,自带的OpenSSH已经是7.0+),当然很多时候我们并不能控制server端的版本。
解决:
(1)在之前的工程.git/hooks/commit-msg复制到新项目中(注意:不是这个文件commit-msg.sample)
(2)执行命令
chmod +x .git/hooks/commit-msg
echo “\nThe commit-msg hook was added to git hooks”
相关文章推荐
- 使用bugly做应用升级时android 7.0上遇到的问题
- 从 .net 1.1 升级到 2.0过程中遇到的问题及解决方法
- TortoiseSVN从1.2.6升级到1.3.2过程中遇到的问题
- 升级到MySQL 5.0.17一定遇到的四个问题
- 升级到MySQL 5.0.17一定遇到的四个问题
- Discuz论坛2.5 升级到PHP MySQL新版遇到的问题
- 升级到MySQL 5.0.17一定遇到的四个问题
- Discuz论坛2.5 升级到PHP MySQL新版遇到的问题
- 升级到MySQL 5.0.17一定遇到的四个问题
- 安装Adobe Acrobat Professional 7.0遇到的问题
- Discuz论坛2.5 升级到PHP MySQL新版遇到的问题
- TortoiseSVN从1.2.6升级到1.3.2过程中遇到的问题
- 升级到ActiveSync 4.5后“可能”遇到的网络连接问题,以及解决方法
- 升级Portal5.1.0.1到5.1.0.4的时候遇到一点小问题
- 升级到MySQL 5.0.17一定遇到的四个问题
- 从 .net 1.1 升级到 2.0过程中遇到的问题及解决方法
- Asp.net1.1升级到2.0遇到的一些问题总结
- Pligg beta9.7升级到pligg beta 9.8过程遇到的(中文支持)问题解决
- Discuz论坛2.5 升级到PHP MySQL新版遇到的问题
- 升级到MySQL 5.0.17一定遇到的四个问题