Skip to content

Commit

Permalink
Be more explicit with ssh_host_keys perms
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Nov 24, 2024
1 parent 0473778 commit c4b3d3d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-openssh-server-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,13 @@ chmod 700 \
/config/.ssh
chmod 600 \
/config/.ssh/authorized_keys
chown root:root \

# ssh_host_keys permissions
lsiown -R root:root \
/config/ssh_host_keys
chmod 755 \
/config/ssh_host_keys
chmod 644 \
/config/ssh_host_keys/sshd_config \
/config/ssh_host_keys/*.pub
find /config/ssh_host_keys/ -name "ssh_host_*_key" -exec chmod 600 {} \;

0 comments on commit c4b3d3d

Please sign in to comment.