Yuchen
Yuchen

Reputation: 33036

Use AWS git server on Sourcetree

I have build myself a git server using Amazon Web Services (AWS). And I am able to checkout the repository under terminal with following command with no problem.

git init && git remote add origin git@ec2-12-345-678-910:my-project.git

However, if I try it with SourceTree, I keep having the warning"This is not a valid path/URL warning". Anybody know what's wrong?

enter image description here

I am pretty much stuck. I will appreciated it if you have any comments.


By the way, I also tried putting git@... in Source Path / URL without ssh://.

Upvotes: 1

Views: 1978

Answers (1)

Ricardo Mutti
Ricardo Mutti

Reputation: 2949

Try ,as said, without the ssh:// and in the end modify to :~/path/to/folder/my-project.git

example:

[email protected]:~/path/to/folder/my-project/.git

Don't forget to add your EC2 identity, otherwise you will get the “Permission denied (publickey).” error. Run on terminal:

ssh-add path/to/privateEC2key.pem

Now you will be able to clone your project from your amazon machine. :)

Upvotes: 1

Related Questions