Horje
ssh git clone Code Example
git clone ssh key
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'
git clone through ssh
This is possibly unrelated directly to the question; but one mistake I just made myself, and I see in the OP, is the URL specification ssh://user@server:/GitRepos/myproject.git - namely, you have both a colon :, and a forward slash / after it signifying an absolute path.

I then found Git clone, ssh: Could not resolve hostname – git , development – Nicolas Kuttler (as that was the error I was getting, on git version 1.7.9.5), noting:

The problem with the command I used initially was that I tried to use an scp-like syntax.

... which was also my problem! So basically in git with ssh, you either use

ssh://username@host.xz/absolute/path/to/repo.git/ - just a forward slash for absolute path on server
username@host.xz:relative/path/to/repo.git/ - just a colon (it mustn't have the ssh:// for relative path on server (relative to home dir of username on server machine)
Hope this helps someone,
Cheers!
ssh git clone
git clone git@github.com:<name>/<repo>.git




Shell

Related
create dektop file in ubuntu Code Example create dektop file in ubuntu Code Example
cat /etc/passwd Code Example cat /etc/passwd Code Example
git clone bare Code Example git clone bare Code Example
where are paint 3d files saved Code Example where are paint 3d files saved Code Example
how to run sh file in docker container Code Example how to run sh file in docker container Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9