开发者

Gitosis - I still have ssh access when I shouldn't

开发者 https://www.devze.com 2023-01-28 15:25 出处:网络
I installed Gitosis but don\'t have it setup correctly. I am still able to ssh in with git user, when the docs say you\'re not supposed to be able to. You\'re only supposed run git commands whi开发者_

I installed Gitosis but don't have it setup correctly. I am still able to ssh in with git user, when the docs say you're not supposed to be able to. You're only supposed run git commands whi开发者_JS百科ch connect to the git server. Any ideas what I may have done wrong?


Check the .ssh/authorized_keys file in Gitosis' home directory. It should only contain keys with a forced command to gitosis-serve.

Also make sure that login for the Gitosis user is only possible with SSH keys but not with a simple password.

0

精彩评论

暂无评论...
验证码 换一张
取 消