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 dnf 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 - OS Build Blueprint


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

Remediation - Ansible

- name: Ensure openssh-server is installed
  package:
    name: openssh-server
    state: present
  when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
  tags:

Remediation - Puppet

include install_openssh-server

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