Skip to content

Commit

Permalink
Merge pull request #2 from tuxpeople/provide-authenticator-config
Browse files Browse the repository at this point in the history
add the possibility to provider a prepared .google_authenticator
  • Loading branch information
neochrome authored Jan 13, 2021
2 parents 28a2afd + 416c470 commit e48df75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
[[ -e /authorized_keys ]] \
&& cp /authorized_keys /bastion/ \
&& chown bastion:users /bastion/authorized_keys

[[ -e /.google_authenticator ]] \
&& cp /.google_authenticator /bastion/ \
&& chown bastion:users /bastion/.google_authenticator \
&& chmod 0400 /bastion/.google_authenticator

ssh-keygen -A \
&& exec /usr/sbin/sshd -De -o LogLevel=$LOG_LEVEL

0 comments on commit e48df75

Please sign in to comment.