Skip to content

Run SSH as non-root user

DJ Mountney requested to merge ssh-non-root into master

Runs sshd as the git user, on port 2222

  • git user now owns the /etc/ssh directory, as well as the script files
  • pid file moved from /run to a directory git user can write to
  • the authorized_keys command script needed to be owned by root, along with all parent paths, so it needed to be moved to a new location

Part of: https://gitlab.com/charts/helm.gitlab.io/issues/266

Edited by DJ Mountney

Merge request reports