sourcetree git command line with ssh authentication

how can I use the sourcetree embedded git client from the terminal with ssh authentication? I'm able to clone a repo via the gui (via putty setup), but an equivalent git clone command via the terminal fails

6 answers

Kindly provide more details on the problem. Somehelpful specifics would be the "equivalent git clone command" that is failing, as well as any error messages that are notifying you of the failure.

hi, I can do a "git clone" via the gui using putty in the background, but when I start a terminal, and use the git embedded client (1.8.3) to do a "git clone", then I get ssh authentication failures. This works via the gui without issues (sourcetree 1.4.0.0)

git clone ssh://stash.company.com/cad/gitbm.git
Cloning into 'repo'...
ssh_control_listener_bind(): No such file or directory
fatal: Could not read from remote repository


Can you SSH into the stash server from the git embedded client? If not, see if this is relevant: https://groups.google.com/forum/#!topic/msysgit/Xf1Af3vrHX8

I can login via sourcetree gui, and putty, but not via the embedded git command via the terminal. "$GIT_SSH" reports "plink: Release 0.63". I can do "$GIT_SSH" stash.server.com, but I cannot do "git ls-remote" from the command line. It's like the embedded git version refuses to read $GIT_SSH

Sounds odd, I'm at a loss. Let's hope one of the Atlassian guys jumps in here.

Sounds odd, I'm at a loss. Let's hope one of the Atlassian guys jumps in here.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you