$ git pull
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ ssh -p 7999[email protected]
shell request failed on channel 0
So not an ssh/authentication issue. Was working yesterday, not working this morning, working this afternoon, not working this evening.
What could it be?
It seems that you have a SSH key uploaded but no read access to the repository in Stash as per the error below:
$ git pull fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
To solve that, please talk to your Stash admin so you can be assigned the right permissions.
The error below is expected because it should not be possible to get a remote shell via Stash (we use http://mina.apache.org/sshd-project/index.html for our SSH server):
$ ssh -p 7999[email protected]<stash-server> shell request failed on channel 0