Skip to content

Commit 75eef95

Browse files
committed
Make it harder for logged in users to modify running config
1 parent 3ee7d15 commit 75eef95

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • root/etc/s6-overlay/s6-rc.d/init-openssh-server-config

root/etc/s6-overlay/s6-rc.d/init-openssh-server-config/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,5 @@ chmod 700 \
132132
/config/.ssh
133133
chmod 600 \
134134
/config/.ssh/authorized_keys
135+
chown root:root \
136+
/config/ssh_host_keys

0 commit comments

Comments
 (0)