Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have successfully setup gitosis on my server thanks to this helpful howto.

Server: CentOS 5
Desktop: Windows 7
Git (on Desktop):
Client: TortoiseGit (with msysgit 1.6.1)

How can I clone a Git repository from my server when my SSH port is non the default (22)?

I believe that the URL ssh:// works, but I get:

'/gitosis-admin.git' does not appear to be a git repository

Thank you.

share|improve this question
@Chris Done. Haven't been here for a while. Also, I had only 4 questions ;) – pek Jul 14 '11 at 20:55
Thank you very much – Chris S Jul 14 '11 at 21:58

1 Answer 1

How about this:

cd ~/.ssh
echo "Host" > config
echo "Port 3031" >> config
git clone
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.