Remove the OpenSSH Client and Server Package
An XCCDF Rule
Description
The openssh
package should be removed.
The openssh
package can be removed with the following command:
$ sudo zypper remove openssh
Rationale
Without protection of the transmitted information, confidentiality, and integrity may be compromised because unprotected communications can be intercepted and either read or altered.
- ID
- xccdf_org.ssgproject.content_rule_package_openssh_removed
- Severity
- Medium
- Updated
Remediation - Puppet
include remove_openssh
class remove_openssh {
package { 'openssh':
ensure => 'purged',
}
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- disable_strategy
- low_complexity
Remediation - Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel-default; then
# CAUTION: This remediation script will remove openssh
# from the system, and may remove any packages
# that depend on openssh. Execute this