Archive for September, 2011

Short note: Running git repo with gitosis on non-standard ssh port

Just a short tip. If your ssh server is on a non-standard port other than port 22, maybe 8822 there are two ways if you manage your repositories with gitosis.
You can just add the port to yur git url like:

git clone ssh://git@myserver.com:8822/repo.git

(Note: git clone git@myserver.com:8822/repo.git without protocol specification wont work)

or create a file ~/.ssh/config containing

Host myserver.com
Port 8822

Source: https://wiki.archlinux.org/index.php/Gitosis#Non-standard_SSH_port

Leave a comment

%d bloggers like this: