Connect SourceTree to VPS using SSH

Hi, I have a VPS that I connect & work over SSH. In this server I have a repository, cloned from GitHub.
How I can connect with SourceTree on this machine, locate the git project and then work with SourceTree?

Many thanks,

4 answers

1 accepted

This widget could not be displayed.

SourceTree can not manage a repository over ssh.

The easiest way to manage a remote repo over ssh is to use the command line git tool (connect via SSH, then use git commands).

If you need a GUI, you can clone the repo locally, or install sourcetree remotely, or try to find another tool.

Hi @Seth, thanks for the reply. Currently I work with putty + git commands but after I tried the SourceTree I become addicted (lazy addicted)!

This widget could not be displayed.

I've heard a lot of people having problems trying to use SourceTree with repos on network mounted drives - it's not possible to just clone your repo to your workstation and work on it there?

This widget could not be displayed.

Hi Apostolos, 


If you add a remote repo on your SourceTree should work, and you could work by command line accessing SourceTree Terminal. 

Please take a look on these links:



That allows him to work locally, but he can't use sourcetree or the local terminal to make his remote interact with its remote.

This widget could not be displayed.

Hi @Tim Crall, my workflow does not involve anything local except tools (IDEs, DB managers, etc.) The projects are on the remote server the tools work over SSH. It's a popular approach these days for web dev and there are many tools that direct you this way, like Vagrant (local VM but you work over SSH).
It will be very nice to see a feature like this smile

Suggest an answer

Log in or Sign up to answer
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...

878 views 2 3
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