Install OpenSSH client software
An XCCDF Rule
Description
Theopenssh-clients
package can be installed with the following command:
$ sudo yum 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
- Updated
Remediation Templates
script:kickstart
package install openssh-clients
OS Build Blueprint
[[packages]]
name = "openssh-clients"
version = "*"
script:bootc
dnf install openssh-clients
A Puppet Snippet
include install_openssh-clients
class install_openssh-clients {
package { 'openssh-clients':
ensure => 'installed',
}
}
An Ansible Snippet
- name: Gather the package facts
package_facts:
manager: auto
tags:
- enable_strategy
- low_complexity
Anaconda Pre-Install Instructions
package --add=openssh-clients
A Shell Script
# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then
if ! rpm -q --quiet "openssh-clients" ; then
yum install -y "openssh-clients"
fi