Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,329
Community Members
 
Community Events
168
Community Groups

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

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

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
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

79,146 views 135 29
Read article

Atlassian Community Events