gpt4 book ai didi

git - 如何在 gitorious.org 中只使用默认的 git 端口

转载 作者:太空狗 更新时间:2023-10-29 13:52:25 26 4
gpt4 key购买 nike

假设我可以远程登录到 gitorious.org 端口 9418(git 的默认端口),但不能在 SSH 端口上。如何设置 gitorious 以便在我尝试推送时不会发生这种情况:

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

所以我只想使用端口 9418。这可能吗?如何实现?

最佳答案

端口 9418 是 git 协议(protocol)的默认端口,它未经身份验证、未加密,因此意味着是只读的。除非 gitorious 正在做一些奇怪的事情(我对此表示怀疑),否则您在该端口上所能做的就是读取(获取/pull )。

如果 SSH 被阻止,主要的解决方法是使用 HTTPS - 你能用那种方式推送吗?

关于git - 如何在 gitorious.org 中只使用默认的 git 端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5112843/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com