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

Permission denied (publickey). Server refused to allocate pty.

Astroman May 11, 2022

When I try to push, it drops an error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream origin main:main
Pushing to git@github.**/***.git
The server's host key is not cached. You have no guarantee
that the server is the computer you think it is.
The server's ssh-ed25519 key fingerprint is:
ssh-*** 255 SHA256:+***
If you trust this host, enter "y" to add the key to

 
I generated keys with a puttygen, added public to a bitbucket account and github, and SSH agent of cource, also loaded key to sourcetree SSH.

When I runned next line, I got an error

putty>plink.exe bitbucket.org


Access granted. Press Return to begin session.
Server refused to allocate pty
authenticated via ssh key.

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

ssh -T git@bitbucket.org
Warning: Permanently added the RSA host key for IP address '***' to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).

debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /c/Users/Astromanson/.ssh/id_rsa RSA *** agent
debug1: Authentications that can continue: publickey
debug1: Trying private key: /c/Users/***/.ssh/id_dsa
debug1: Trying private key: /c/Users/***/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/***/.ssh/id_ed25519
debug1: Trying private key: /c/Users/***/.ssh/id_xmss
debug1: No more authentication methods to try.
git@github.com: Permission denied (publickey).

 

 

 

2 answers

0 votes
Astroman July 12, 2022

Nothing helps. Leaving sourcetree.

0 votes
Astroman May 11, 2022

Fixed by recreating a project

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events