Cheat Sheets

SSH - UsePrivilegeSeparation

Description

Checks /etc/ssh/sshd_config for UsePrivilegeSeparation no

Solution

sed -i 's/UsePrivilegeSeparation.*no/UsePrivilegeSeparation yes/' /etc/ssh/sshd_config

Check Script: ssh-privilege-separation.sh

#!/bin/bash

if grep -q "UsePrivilegeSeparation[[:space:]]no" /etc/ssh/sshd_config 2>/dev/null; then result_failed "UsePrivilegeSeparation is not yes" else result_ok fi
Comment on Disqus