#!/bin/bash

function test()
{
	exist=`systemctl |grep running|grep service|grep ssh`
	if [[ -n "$exist" ]];then
        ret=`grep "PermitEmptyPasswords yes" /etc/ssh/sshd_config |grep -v "#"`
        #echo $ret
		#$ret is not null
		if [[ -n "$ret" ]];then
			echo 1
		else
			echo 0
			
		fi
	else
		echo 0
	fi

}
test





