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

3 votes
Answer accepted

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)!

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?

0 votes

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.

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 Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,237 views 4 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