removed deprecated options

This commit is contained in:
ston1th 2018-12-18 21:53:13 +01:00
commit 4687b78056
2 changed files with 6 additions and 1 deletions

View file

@ -75,6 +75,11 @@ PasswordAuthentication no
PrintMotd no
EOF
if [ "${UNAME}" = "OpenBSD" ]; then
sed -i '/UsePrivilegeSeparation/d' /etc/ssh/sshd_config
sed -i '/RSAAuthentication/d' /etc/ssh/sshd_config
fi
case ${UNAME} in
Linux)
cat <<EOF>> /etc/ssh/sshd_config