Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can no longer push to BitBucket

I'm trying to push my code to BitBucket but Xcode keeps giving me the error:

SecureTransport error: I/O error (bummers) (-1)

If I try pushing using the command line, it keeps giving me the following error:

error: RPC failed; curl 56 SSLRead() return error -9820
fatal: The remote end hung up unexpectedly

It was working but has suddenly stopped and I have no idea why. Googling hasn't brought up any answers either, although a solution to a similar error suggested to make sure php uses openssl. That didn't work. Any help would be appreciated!

like image 621
Tometoyou Avatar asked Jun 14 '16 13:06

Tometoyou


2 Answers

After contacting BitBucket, they suggested to connect using SSH rather than HTTPS. My problem was that I was transferring too much in one go. After I did that it worked!

like image 100
Tometoyou Avatar answered Oct 24 '22 00:10

Tometoyou


That problem was annoying me for a while and based on the accepted answer the detailed following scenario worked with me, Add ssh key to Bitbucket account

  1. in Bitbucket site click your avatar
  2. bitbucket settings
  3. ssk keys
  4. Copy your key to your clipboard with: cat ~/.ssh/id_rsa.pub | pbcopy then past the key and give it any name
  5. when stupid xcode shows that stupid error dialog point it to use ssh.

Thank you very much @Tometoyou !

like image 23
Amr Lotfy Avatar answered Oct 24 '22 01:10

Amr Lotfy