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

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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
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