Skip to content
Snippets Groups Projects
Commit 28381df8 authored by Bob Mottram's avatar Bob Mottram
Browse files

Ensure privilege separation exists

parent 9ffb2b23
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,9 @@ function configure_ssh {
echo "KexAlgorithms $SSH_KEX" >> /etc/ssh/sshd_config
fi
sed -i "s|#KexAlgorithms $SSH_KEX|KexAlgorithms $SSH_KEX|g" /etc/ssh/sshd_config
if ! grep -q 'UsePrivilegeSeparation' /etc/ssh/sshd_config; then
echo 'UsePrivilegeSeparation sandbox' >> /etc/ssh/sshd_config
fi
sed -i 's|#UsePrivilegeSeparation .*|UsePrivilegeSeparation sandbox|g' /etc/ssh/sshd_config
sed -i 's|UsePrivilegeSeparation .*|UsePrivilegeSeparation sandbox|g' /etc/ssh/sshd_config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment