Random Project

SSH Error if no connection

If you want to have an error if the ssh connection is not working and ask the password to nagios add this parameter at the end of the ssh command: -qo PasswordAuthentication=no

CONNECTCOMMAND=”ssh $USERNAME@$INSERV -qo PasswordAuthentication=no”