Created Init-Container that pulls pubkeys from git, creates authorized_keys, ssh-host-keys and backup-repo folders

This commit is contained in:
nold 2020-03-24 16:00:00 +01:00
parent ac797c90f6
commit 1a8e59d773
11 changed files with 273 additions and 146 deletions

29
server/sshd_config Normal file
View file

@ -0,0 +1,29 @@
Port 2222
AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::
HostKey /sshkeys/ssh_host_rsa_key
HostKey /sshkeys/ssh_host_ed25519_key
PidFile /tmp/sshd.pid
PermitRootLogin no
StrictModes yes
MaxSessions 20
PubkeyAuthentication yes
AuthorizedKeysFile /home/borg/.ssh/authorized_keys
LogLevel INFO
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM yes
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
PermitTTY no
PrintMotd no
PermitTunnel no
Subsystem sftp /bin/false