简体   繁体   中英

Suddenly started to receive ssh_exchange_identification error using git/bitbucket

Nothing was changed in the system. I work as usually. And usually there was no any problems with pull\/push. I have access on bitbucket, if I visit it via the browser.

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

Please make sure you have the correct access rights

I also faced a similar issue all of a sudden. I tried of couple of suggestions given in ssh_exchange_identification: Connection closed by remote host under Git bash but the following one worked for me.

  1. Delete ssh folder ( ~/.ssh )
  2. Recreate .ssh using ssh-keygen
  3. Configure the latest public key
  4. Then now try your git commands

Got same issue today.

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

It might be a problem with Bitbucket.


The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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