I can connect from my pc to my EC2 git server using ssh ( i specified port 22 cause default port is onother):
$ ssh -p22 [email protected]
this works fine, but when I try to clone I have som problems(again i specified port 22 cause default port is onother):
sudo git clone ssh://[email protected]:22/home/dev/some/stuff.git
this is the output:
[email protected]: Permission denied (publickey).
why????