Skip to content

Commit

Permalink
Merge pull request #33 from jrjohnson/permit-ssh
Browse files Browse the repository at this point in the history
Modify SSH to allow ENV variables
  • Loading branch information
dartajax authored Aug 8, 2019
2 parents 6b2ff93 + ecefd55 commit e8f16f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssh-admin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ RUN mkdir /run/sshd
# Remove password based authentication for SSH
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config

# Pass environmental variables to SSH sessions
RUN sed -i 's/#PermitUserEnvironment no/PermitUserEnvironment yes/' /etc/ssh/sshd_config

# allow users in the sudo group to do wo without a password
RUN /bin/echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/no-password-group

Expand Down

0 comments on commit e8f16f3

Please sign in to comment.