Skip to content

Install OpenSSH client software

An XCCDF Rule

Description

The openssh-clients package can be installed with the following command:
$ sudo dnf install openssh-clients

Rationale

This package includes utilities to make encrypted connections and transfer files securely to SSH servers.

ID
xccdf_org.ssgproject.content_rule_package_openssh-clients_installed
Severity
Medium
References
Updated

Remediation Templates

script:kickstart

package install openssh-clients

An Ansible Snippet

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

Anaconda Pre-Install Instructions

package --add=openssh-clients

A Puppet Snippet

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

OS Build Blueprint

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

A Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
if ! rpm -q --quiet "openssh-clients" ; then
    dnf install -y "openssh-clients"
fi