Skip to content

Commit

Permalink
Fix Issue #12: SV-86863r2_rule, Fix Method: RhostsRSAAuthentication yes
Browse files Browse the repository at this point in the history
  • Loading branch information
Samson-W committed Jul 21, 2017
1 parent 13aa9ef commit 3ba7653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/check-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ case $1 in
RhostsRSAAuthentication)
if grep RhostsRSAAuthentication /etc/ssh/sshd_config | grep -v "^#";then
SETVALUE=`grep RhostsRSAAuthentication /etc/ssh/sshd_config | grep -v "^#" | awk '{printf $2}'`
if [ "${SETVALUE}" == "no" ];then
if [ "${SETVALUE}" == "yes" ];then
exit 1
fi
else
Expand Down
4 changes: 2 additions & 2 deletions stig-debian-9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,8 @@ Rule ID: SV-86863r2_rule
Severity: medium
Rule Title: The SSH daemon must not allow authentication using RSA rhosts authentication.
Description: Configuring this setting for the SSH daemon provides additional assurance that remote logon via SSH will require a password, even in the event of misconfiguration elsewhere.
Check_content: Verify the SSH daemon does not allow authentication using RSA rhosts authentication.\n\nTo determine how the SSH daemon\'s "RhostsRSAAuthentication" option is set, run the following command:\n\n# grep RhostsRSAAuthentication /etc/ssh/sshd_config\n\nRhostsRSAAuthentication yes\n\nIf the value is returned as "no", the returned line is commented out, or no output is returned, this is a finding.
Fixtext: Configure the SSH daemon to not allow authentication using RSA rhosts authentication.\n\nAdd the following line in "/etc/ssh/sshd_config", or uncomment the line and set the value to "yes":\n\nRhostsRSAAuthentication yes\n\nThe SSH service must be restarted for changes to take effect.
Check_content: Verify the SSH daemon does not allow authentication using RSA rhosts authentication.\n\nTo determine how the SSH daemon\'s "RhostsRSAAuthentication" option is set, run the following command:\n\n# grep RhostsRSAAuthentication /etc/ssh/sshd_config\n\nRhostsRSAAuthentication yes\n\nIf the value is returned as "yes", the returned line is commented out, or no output is returned, this is a finding.
Fixtext: Configure the SSH daemon to not allow authentication using RSA rhosts authentication.\n\nAdd the following line in "/etc/ssh/sshd_config", or uncomment the line and set the value to "no":\n\nRhostsRSAAuthentication no\n\nThe SSH service must be restarted for changes to take effect.

Rule ID: SV-86865r2_rule
Severity: medium
Expand Down

0 comments on commit 3ba7653

Please sign in to comment.