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

Assuming I can use telnet for the gitorious.org 9418 port (default for git), but not for the SSH port. How to configure gitorious so that when you try to click, this will not 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 port 9418 ONLY. Is it possible and how to do it?

+3
source share
2 answers

Port 9418 is the default port for the git protocol, which is unauthenticated, unencrypted and therefore read-only. If gitorious does not do something strange (I doubt it), everything you can do on this port is read (fetch / pull).

, SSH , HTTPS - ?

+6

.git/config [remote "origin"] -> url, :

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/

, , ssh://. 9418, gitorious , (git:// ), , .

+1

Source: https://habr.com/ru/post/1794604/


All Articles