I am trying to push a git repo from PowerShell into an Azure DevOps repo, and I keep getting different auth errors when trying to push it.
I am hoping somebody can sh
When you paste in the key on the settings page of Azure DevOps don't change anything including the space appended at the end of the public key.
Before this I had already tried the other answers, but nothing worked. At last, this article had the solution for me in Fedora.
Running ssh with the -v switch (ssh -v -T git@ssh.dev.azure.com
) revealed this error:
debug1: send_pubkey_test: no mutual signature algorithm
Workaround is to add this line to the client configuration file (~/.ssh/config):
PubkeyAcceptedKeyTypes +rsa-sha2-256,rsa-sha2-512
Sign into your Azure DevOps. Go to Repos > Files, then click Clone. Finally, under the HTTPS tab, click Generate Git Credentials.
I have the same problem.
My solution was:
The path while I try to use sudo git clone...
doesn't have permission to access my public and private key location: \home\localuser\.ssh\...
.
To solve this, I change ownership of the destination path to the same user:group ware my keys are stored and avoid to use sudo git clone....
, now im using git clone
without sudo
and everything works.
I hope you understand...