fixed check_ssh()
This commit is contained in:
parent
c9721bd3fe
commit
8b8d560b99
1 changed files with 7 additions and 3 deletions
10
helmet.sh
10
helmet.sh
|
|
@ -82,10 +82,14 @@ check_md5() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_ssh() {
|
check_ssh() {
|
||||||
if [[ $(grep -i -c 'PermitRootLogin.*yes' /etc/ssh/ss*conf*) > 0 ]]; then
|
if [ $ssh ]; then
|
||||||
SSHD="Root login enabled!"
|
SSHD="not run"
|
||||||
else
|
else
|
||||||
SSHD="root login disabled"
|
if [[ $(grep -i -c 'PermitRootLogin.*yes' /etc/ssh/ss*conf*) > 0 ]]; then
|
||||||
|
SSHD="Root login enabled!"
|
||||||
|
else
|
||||||
|
SSHD="root login disabled"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue