美文网首页
MacOS 升级到10.13 10.14后git和ssh无法使用

MacOS 升级到10.13 10.14后git和ssh无法使用

作者: Zszen | 来源:发表于2018-10-06 00:38 被阅读62次

错误:fatal: Could not read from remote repository 和 no matching cipher found

解决方案: https://discussions.apple.com/message/32769748#32769748
https://blog.csdn.net/shuyumac/article/details/79283150

  • 进入terminal,输入 sudo nano /etc/ssh/ssh_config
  • 找到# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blow fish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour这行
  • 在它后面添加一行
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc

之后再提交git等,到局域网的就都好使了。

也可以增加局域网ip描述到config中

Host 192.168.0.1 Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc

相关文章

网友评论

      本文标题:MacOS 升级到10.13 10.14后git和ssh无法使用

      本文链接:https://www.haomeiwen.com/subject/xoycaftx.html