File: //opt/BCLinux/bse/secure_check/c11_sshCipher
#!/bin/sh
#=======================================================
InsertSection "check the ssh_cipher"
IS_EXIST=`egrep -v '^#|^$' /etc/ssh/sshd_config | grep Ciphers |wc -l`
if [ "${IS_EXIST}" = "0" ] ; then
echo "c11" >> $RESULT_FILE
echo "" >> $RESULT_FILE
logtext "WRN_C11: $(loadtext TXT_WRN_C11)"
logtext "Suggestion: $(loadtext TXT_SUG_C11)"
Display --indent 2 --text "- No ssh cipher config set... " --result WARNING --color RED
AddHP 0 1
else
logtext "Has ssh cipher set, checking ok"
Display --indent 2 --text "- Check the ssh cipher... " --result OK --color GREEN
AddHP 1 1
fi