Git: push via ssh to a root owned repository with ssh root logins disabled

Posted by anthonysomerset on Server Fault See other posts from Server Fault or by anthonysomerset
Published on 2011-11-17T16:29:19Z Indexed on 2011/11/17 17:55 UTC
Read the original article Hit count: 246

Filed under:
|
|
|
|

is that even possible?

Summary, i'm running puppet master on a server and ideally we want root logins via ssh disabled, we want to force all access via sudo if root access required

however we have puppet installed using a git repo to manage the manifests, this repo is currently owned by root and currently i only know of 2 solutions

  1. (less ideal) allow root access via key auth only - if so, what can i lock it down to to only allow the git push commands?
  2. own the repo in /etc/puppet as a different owner - will puppet work reliably with this?

© Server Fault or respective owner

Related posts about ssh

Related posts about git