I can connect from my pc to my EC2 git server using ssh ( i specified port 22 cause default port is onother):
$ ssh -p22 dev@xxxxxxxxxxxx.compute.amazonaws.com
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://dev@xxxxxxxxxx.compute.amazonaws.com:22/home/dev/some/stuff.git
this is the output:
dev@xxxxxxxxxxxxxxxxxx.compute.amazonaws.com: Permission denied (publickey).
why????