Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

suddenly not able to pull on server via ssh

Ákos Laczkó
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!
September 20, 2023

Hi folks,

I have a problem pulling from our repo via ssh on our server. We have used the current setup for years, without any problem.

But suddenly:

$ git pull 
The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

Interesting thing is:

$ ssh -T       
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

Debugging neither shows any error as far as I can tell:

$ ssh -Tv 
OpenSSH_7.6p1 Ubuntu-4ubuntu0.5, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /home/siteuser/.ssh/config
debug1: /home/siteuser/.ssh/config line 1: Applying options for
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to [] port 22.
debug1: Connection established.
debug1: identity file /home/siteuser/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/siteuser/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.5
debug1: Remote protocol version 2.0, remote software version conker_79d40d7e32 81a2932be6d9
debug1: no match: conker_79d40d7e32 81a2932be6d9
debug1: Authenticating to as 'git'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm:
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: MAC: <implicit> compression: none
debug1: kex: client->server cipher: MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:FC73VB6C4OQLSCrjEayhMp9UMxS97caD/Yyi2bhW/J0
debug1: Host '' is known and matches the ECDSA host key.
debug1: Found key in /home/siteuser/.ssh/known_hosts:5
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<,,,rsa-sha2-256,ecdsa-sha2-nistp384,ssh-dss,ecds
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:KwwRBC7De3QMdypLtVYdmH3vB1hT7oNs4Hl9ieZIEsA /home/siteuser/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to ([]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype want_reply 0
debug1: Sending environment.
debug1: Sending env LC_ALL = en_US.UTF-8
debug1: Sending env LC_MEASUREMENT = hu_HU.UTF-8
debug1: Sending env LC_PAPER = hu_HU.UTF-8
debug1: Sending env LC_MONETARY = hu_HU.UTF-8
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env LC_NAME = hu_HU.UTF-8
debug1: Sending env LC_ADDRESS = hu_HU.UTF-8
debug1: Sending env LC_NUMERIC = hu_HU.UTF-8
debug1: Sending env LC_MESSAGES = C
debug1: Sending env LC_TELEPHONE = hu_HU.UTF-8
debug1: Sending env LC_IDENTIFICATION = hu_HU.UTF-8
debug1: Sending env LC_TIME = hu_HU.UTF-8
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 3240, received 2456 bytes, in 0.2 seconds
Bytes per second: sent 15004.6, received 11373.9
debug1: Exit status 0

I've visited the SSH troubleshooting page, but cannot find anything relevant:


Your help is much appreciated! 

2 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2023

Hello @Ákos Laczkó and welcome to the Community!

From the SSH logs, I see the following private key is being used to authenticate to Bitbucket Cloud : 


Could you please confirm if this is the correct key you want to use to authenticate and if the corresponding public key (a file in the same directory that ends with the extension .pub) was added to Bitbucket ?

Additionally, could you check if the public key was added to a user account (Personal Settings > SSH Keys) or directly to a workspace/repository? 

If the public SSH was added to a user account, this user must have access to the repository in question. 

Thank you, @Ákos Laczkó  !

Patrik S

0 votes
Jimmy.Diep September 20, 2023

My guess is that the user you are using doesn't have access to the repos.


With your user, are you able to login to and see the repos?

Check to see if you are using the same user when you do the git pull.

You can also try cloning the repos, does that work?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events