How to use only the default git port with gitorious.org

6.6k Views Asked by At

Assuming I can telnet to gitorious.org port 9418 (default for git), but not on SSH port. How to set up gitorious so that when I try to push, this wouldn't happen:

git push
ssh: connect to host gitorious.org port 22: Connection timed out
fatal: The remote end hung up unexpectedly

So I want to use ONLY port 9418. Is that possible and how to do it?

2

There are 2 best solutions below

4
On BEST ANSWER

Port 9418 is the default port for the git protocol, which is unauthenticated, unencrypted, and therefore meant to be read-only. Unless gitorious is doing something weird (I doubt it), all you can do on that port is read (fetch/pull).

The primary workaround if SSH is blocked is to use HTTPS - can you push that way?

0
On

The .git/config has an [remote "origin"] -> url that can follow one of the following patterns:

ssh://[user@]host.xz[:port]/path/to/repo.git/

git://host.xz[:port]/path/to/repo.git/

http[s]://host.xz[:port]/path/to/repo.git/

ftp[s]://host.xz[:port]/path/to/repo.git/

rsync://host.xz/path/to/repo.git/

Based on the error you're providing, it looks like your's points to ssh://. If you want to push through 9418, and if gitorious supports it, (git:// protocol's default port), you'll need the origin to point to that.