繁体   English   中英

"突然开始使用 git\/bitbucket 收到 ssh_exchange_identification 错误"

[英]Suddenly started to receive ssh_exchange_identification error using git/bitbucket

系统没有任何改变。 我像往常一样工作。 通常拉\/推没有任何问题。 如果我通过浏览器访问它,我可以访问 bitbucket。

现在,当我尝试从 bitbucket 存储库中推送或拉取时,出现错误:

ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

我也突然遇到了类似的问题。 我尝试了ssh_exchange_identification 中给出的几个建议:连接被远程主机在 Git bash 下关闭,但以下建议对我有用

  1. 删除 ssh 文件夹 ( ~/.ssh )
  2. 使用 ssh-keygen 重新创建 .ssh
  3. 配置最新的公钥
  4. 然后现在试试你的 git 命令

今天遇到同样的问题。

通过在 ssh config(vim ~\/.ssh\/config) 中添加以下行修复了该问题

Host bitbucket.org
  AddKeysToAgent yes
  HostName altssh.bitbucket.org
  IdentityFile ~/.ssh/id_rsa
  UseKeychain yes
  Port 443

这可能是 Bitbucket 的问题。

检查 Bitbucket 状态https:\/\/bitbucket.status.atlassian.com\/history<\/a>


这就是我和原始海报所发生的事情,但直到看到这里对问题的评论,我才想到要检查。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM