Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

New setup failing - no access methods


My machine lost ts magic smoke, so I have had to restore to a temporary machine (windows).  The sources are on a Linux VM, (restored) with a share. 

Therefore I work in windows, editing sources via the share. 

To save the changes, I use gitgui to set up the commit (done) and the push. 

However the push is failing, and git gui refused to save the fingurprint (bug??). 

So I set up a putty session, using SSH and stored the fingerprint.  

Now it is failing with "FATAL ERROR: No supported authentication methods available (server sent: publickey) fatal: Could not read from remote repository." 

What do I need to set up? I'm guessing it is something for git on the windows end, but I know not what. 

I do have password access to bitbucket, so I can get into the account. 

More info. I had not set up .ssh under my new user, and then found I could not read the keyfile (on the restored D: drive).  Now I get this....

ian@ganymede MINGW64 /d/TempFiles/Temp4
$ git clone
Cloning into 'coachmaster'...
FATAL ERROR: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ian@ganymede MINGW64 /d/TempFiles/Temp4
$ ssh -T
authenticated via ssh key.

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

ian@ganymede MINGW64 /d/TempFiles/Temp4

Ideas anyone? 




1 answer

The answer is that git has changed the way it discovers how to drive SSH! 

The magic incantation is to enter

git config core.sshCommand "ssh -i ~/.ssh/id_rsa"

into the git bash terminal (opened in the directory above the .git). Clearly your id file may be different. 

This adds the text in quotes to the [Core] section of .git/config  

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,440 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you