diff --git a/src/freedombone-utils-ssh b/src/freedombone-utils-ssh index 274ebd04..9e35d088 100755 --- a/src/freedombone-utils-ssh +++ b/src/freedombone-utils-ssh @@ -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