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

How to force ST to use username from ssh config

Zbynek Vavros Jul 31, 2015


since my PC username is different from my GIT username I have added this section into c:\users\myuser\.ssh\config


Host git
  Port 22
  User mygituser

This works just fine with command line where I can simply "ssh", my key is used and I am logged in.

But in ST UI whenever I try to fetch/pull a dialog asking for username/password pops up.

I did started the Pageant and added the key but this seems more like ST does not use the ssh config.

Running on Windows 7 and SourceTree


Thanks for any pointers,



PS : I know I can place the desired user directly into URL ( but since I have quite a lot of them I would like to avoid this.

1 answer

0 votes
Renato Rudnicki Atlassian Team Jul 31, 2015

Hi Zbynek, 

Did you try the "Authentication" tab under Tools>Options, you can modify information of saved users there.

Also, I've found this another answer which looks similar and might be useful.



Renato Rudnicki

Zbynek Vavros Aug 02, 2015

Hey Renato,

thanks for taking the time to help me.

First off, the "Authentication" tab contains no records at all and since there are only "Edit" and "Delete" buttons I guess I can't add records myself.


Regarding the thread, they mention that ST may have it's own config - I haven't found any.

Also, I tried to switch between embedded and system GIT but no change sad


I guess these shouldn't really have any effect since this is more SSH configuration than GIT one.


Anyway, still not working as expected...



Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,950 views 14 18
Join discussion

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