Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

all operations fail over ssh

Nic Mollel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2018

Hello, 

trying to pull or push on any of my repositories from the command-line generates the following message: 

$ git pull
Connection closed by 18.205.93.0 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 tracing authentication has the following results: 

$ ssh -v -T git@bitbucket.org
OpenSSH_7.7p1, OpenSSL 1.0.2o 27 Mar 2018
debug1: Reading configuration data ------/.ssh/config
debug1: ----/.ssh/config line 1: Applying options for bitbucket.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to bitbucket.org [104.192.143.2] port 22.
debug1: Connection established.
debug1: identity file [redacted]/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file -----/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.7
debug1: Remote protocol version 2.0, remote software version libssh-0.6.5
debug1: no match: libssh-0.6.5
debug1: Authenticating to bitbucket.org:22 as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: host key algorithm: ssh-dss
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha1 compression: none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-dss SHA256:yFnU6TvO6zNzGXkSXQFHN1Up7RQnm3qrAVvVdYSpi8A
debug1: Host 'bitbucket.org' is known and matches the DSA host key.
debug1: Found key in ------/.ssh/known_hosts:1
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 public key: RSA SHA256:AJ//----- ----/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
Connection closed by 104.192.143.2 port 22

 

I also have made attempts to re-clone the repositories in case it my remote URLs that are corrupted and the results is the same as what I posted above for the pull operation.  My access level to all repositories I am having problems with is 'Write'. 

Any ideas on how to diagnose the issue here and resolve it would be greatly appreciated. 

1 answer

1 accepted

0 votes
Answer accepted
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2018

That is not the bitbucket.org server host key hash. I get the following:

jredmond:~ jredmond$ ssh-keyscan -t dsa bitbucket.org | ssh-keygen -lf -
# bitbucket.org:22 SSH-2.0-conker_1.1.11-210b09a app-126
1024 SHA256:RezPkAnH1sowiJM0NQXH90IohWdzHc3fAisEp7L3O3o bitbucket.org (DSA)

jredmond:~ jredmond$ ssh-keyscan -t rsa bitbucket.org | ssh-keygen -lf -
# bitbucket.org:22 SSH-2.0-conker_1.1.11-210b09a app-128
2048 SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A bitbucket.org (RSA)

(The ssh-keygen part is there to get the SHA256 hash.)

Are you connecting through a proxy of some kind?

jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2018

Another sign that you're not connecting directly to Bitbucket:

debug1: Remote protocol version 2.0, remote software version libssh-0.6.5
Nic Mollel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2018

Checked with our infrastructure/network team and you're right. It looks like a firewall update changed some things and was the culprit. Thank you for your help, i am back in operation. 

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events