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

SSH Authentication Failed when trying to clone a git repo in SourceTree

Ovidia Leuca August 18, 2022

I am trying to clone a repository in Sourcetree and I keep receiving this error:

"Your SSH agent (Pageant) is running but the server still rejected your connection.

You may need to load the correct key by double-clicking on the Pageant
icon in your system tray and selecting 'Add Key'."

Is there a way to get the key / be able to clone without the SSH key?

1 answer

0 votes
niyazi_oz August 22, 2022

You can try HTTPS authentication option in your Source Tree and copy and use the HTTPS address from GitHub when cloning. 

Your internet connection (the network you are in) may not be allowing SSH connection which in my case, I used OAuth option. 

Go to the Source Tree Tools > Options > Authentication > Add new account

-Hosting Service - Github

-Preferred protocol: HTTPS

-Authentication: OAuth

Username: <you know this>

Click on Refresh OAuth Token and that will direct you browser and in a few seconds you will have the authentication done, then you can clone your repo..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events