Skip to content

Install the OpenSSH Server Package

An XCCDF Rule

Description

The openssh-server package should be installed. The openssh-server package can be installed with the following command:
$ sudo yum install openssh-server

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-server_installed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

include install_openssh-server
class install_openssh-server {
  package { 'openssh-server':
    ensure => 'installed',
  }
}

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - DISA-STIG-RHEL-08-040159
  - NIST-800-53-CM-6(a)

script:kickstart

package install openssh-server

OS Build Blueprint

[[packages]]
name = "openssh-server"
version = "*"

script:bootc

dnf install openssh-server

Anaconda Pre-Install Instructions

package --add=openssh-server

A Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
if ! rpm -q --quiet "openssh-server" ; then
    yum install -y "openssh-server"
fi