簡體   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