> git clone -p 2222 git@server:repo
> git clone "-p 2222 git@server":repo
> git clone "git@server:2222":repo
> git clone "git@server -p 2222":repo
but none of these work. Either git complains about the unknown -p
flag, or ssh is done to port 22 as usual.
N.B. > ssh -p 2222 git@server does get me gitolite version (v1.5.7-2-
g182b1d0) and access information, so it's there.
You need to use the explicit SSH protocol URL syntax for git:
git clone ssh://git@server:2222/repo
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfle...@digium.com
Check us out at www.digium.com & www.asterisk.org
Just specify this port in your ssh client config (~/.ssh/config).
Add such entry:
Host server
User git
Port 2222
Now you can use just: ssh://server.
It will work for any program using ssh (ssh, scp, rsync, git).
--
Regards,
Paweďż˝
> Paweł
Thanks to everyone for the solutions. I can get at my repositories now.