我安装了GitLab 7.0.0 - 并且一直运行良好 - 直到我想让我的服务器更省一点(经历过一些暴力攻击)..所以我在/ etc / ssh / sshd_config中更改了一些事情:
AllowUsers git #and some other users
PasswordAuthentication no
可以建立通过PUTTY和SSH密钥的SSH连接..
那么我可以这样使用GitLab吗?我错过了一些配置吗?
提前谢谢!
答案 0 :(得分:0)
您可以按issue 5501和this gist
中的建议进行尝试Match User git
PasswordAuthentication no
并省略AllowUsers部分(以查看它是否正常工作,因为issue 5306报告该选项存在问题)
还检查与该帐户关联的shell(issue 6266)
您在issue 4730中有其他建议。