如何在GitBlit中禁用SSH并仅使用HTTP和HTTPS

时间:2015-04-24 13:12:39

标签: git ssh gitblit

我尝试在GitBlit中禁用SSH并将其从Repository-URL中隐藏,例如SSH://用户名@域名:29418 / MyProj.git。 我只需要http和https访问权限,例如wordpress' documentation

GitBlit正在JBoss 4上运行。

感谢您的帮助。

1 个答案:

答案 0 :(得分:6)

将端口设置为小于0的数字以禁用它。

更多信息可以在这里找到: http://gitblit.com/properties.html

# The port for serving the SSH service. <= 0 disables this service.
# On Unix/Linux systems, ports < 1024 require root permissions.
# Recommended value: 29418
# 
# SINCE 1.5.0
# RESTART REQUIRED
git.sshPort = 29418