Home Directory Plugins Security Check setting sshd (Security of SSH)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Check setting sshd (Security of SSH)

Current Version
1.0
Last Release Date
2012-02-29
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
Hits
77759
Files:
FileDescription
check_setting_sshd.shVersion 1.0
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This check control the security of your SSH service (The setting of sshd_config file)
4 values are checking: PermitRootLogin, Protocol, Port and PermitEmptyPasswords
For more detail ./check_setting_sshd.sh -h
This check control the security of your SSH service (The setting of sshd_config file)
4 values are checking: PermitRootLogin, Protocol, Port and PermitEmptyPasswords
For more detail ./check_setting_sshd.sh -h
------------------------
Usage: ./check_setting_sshd.sh [OPTIONNAL] -r PermitRootLogin -p Protocol -P PermitEmptyPasswords -f "path_file_sshd_config"
Options:
-r Value of "PermitRootLogin" (Default:no)
-o Value of "Port" (Default:22)
-p Value of "Protocol" (Default:2)
-P Value of "PermitEmptyPasswords" (Default:no)
-f Path of the file sshd_config (Default:/etc/ssh/sshd_config)
-h Display Help

Without options the script take the default setting.

Example 1 - Without options:
./check_setting_sshd.sh
By default when you launch the script without
option it's similar to: ./check_setting_sshd.sh -r no -o 22 -p 2 -P no -f "/etc/ssh/sshd_config"

Example 2 - With options:
./check_setting_sshd.sh -r without-password -p 1 -o 3446 -P yes -f "/etc/sshd/sshd_config.ini"
------------------------