Problem with SSH from Raspbian - Could not read from remote repository

XMLWordPrintable

      I cannot any longer push to or pull from a Bitbucket repository from Raspbian (Debian on Raspberry Pi). It worked before but it suddenly stopped working.

      I get the following error message:

      Connection to bitbucket.org closed by remote host.
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      

      It seems my public ssh key is correct and recognised, but after that something goes wrong because I cannot login with ssh to bitbucket:

      ssh -v -T git@bitbucket.org
      
      debug1: sending SSH2_MSG_KEX_ECDH_INIT
      debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
      debug1: Server host key: RSA 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
      debug1: Host 'bitbucket.org' is known and matches the RSA host key.
      debug1: Found key in /home/pi/.ssh/known_hosts:2
      debug1: SSH2_MSG_NEWKEYS sent
      debug1: expecting SSH2_MSG_NEWKEYS
      debug1: SSH2_MSG_NEWKEYS received
      debug1: SSH2_MSG_SERVICE_REQUEST sent
      debug1: SSH2_MSG_SERVICE_ACCEPT received
      debug1: Authentications that can continue: publickey
      debug1: Next authentication method: publickey
      debug1: Offering RSA public key: /home/pi/.ssh/id_rsa
      debug1: Server accepts key: pkalg ssh-rsa blen 279
      debug1: Authentication succeeded (publickey).
      Authenticated to bitbucket.org ([104.192.143.1]:22).
      debug1: channel 0: new [client-session]
      debug1: Entering interactive session.
      debug1: Sending environment.
      debug1: Sending env LC_ALL = en_US.UTF-8
      debug1: Sending env LANG = en_US.UTF-8
      debug1: Sending env LC_CTYPE = UTF-8
      debug1: channel 0: free: client-session, nchannels 1
      Connection to bitbucket.org closed by remote host.
      
      
      

      When I do the same from Mac OS X I am able to login:

      <removed lines>
      debug1: rekey after 4294967296 blocks
      debug1: SSH2_MSG_NEWKEYS sent
      debug1: expecting SSH2_MSG_NEWKEYS
      debug1: SSH2_MSG_NEWKEYS received
      debug1: rekey after 4294967296 blocks
      debug1: SSH2_MSG_SERVICE_ACCEPT received
      debug1: Authentications that can continue: publickey
      debug1: Next authentication method: publickey
      debug1: Offering RSA public key: /Users/kees/.ssh/id_rsa
      debug1: Server accepts key: pkalg ssh-rsa blen 279
      debug1: Authentication succeeded (publickey).
      Authenticated to bitbucket.org ([104.192.143.3]:22).
      debug1: channel 0: new [client-session]
      debug1: Entering interactive session.
      debug1: pledge: network
      debug1: Sending environment.
      debug1: Sending env LC_ALL = en_US.UTF-8
      debug1: Sending env LANG = en_US.UTF-8
      debug1: Sending env LC_CTYPE = UTF-8
      debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
      logged in as keesalbers.
      
      You can use git or hg to connect to Bitbucket. Shell access is disabled.
      debug1: channel 0: free: client-session, nchannels 1
      

      Any advice would be much appreciated!

              Assignee:
              Unassigned
              Reporter:
              keesalbers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: