SV-238215r653820_rule
V-238215
SRG-OS-000423-GPOS-00187
UBTU-20-010042
CAT I
10
Install the "ssh" meta-package on the system with the following command:
$ sudo apt install ssh
Enable the "ssh" service to start automatically on reboot with the following command:
$ sudo systemctl enable sshd.service
ensure the "ssh" service is running
$ sudo systemctl start sshd.service
Verify the SSH package is installed with the following command:
$ sudo dpkg -l | grep openssh
ii openssh-client 1:7.6p1-4ubuntu0.1 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:7.6p1-4ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:7.6p1-4ubuntu0.1 amd64 secure shell (SSH) sftp server module, for SFTP access from remote machines
If the "openssh" server package is not installed, this is a finding.
Verify the "sshd.service" is loaded and active with the following command:
$ sudo systemctl status sshd.service | egrep -i "(active|loaded)"
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-01-24 22:52:58 UTC; 1 weeks 3 days ago
If "sshd.service" is not active or loaded, this is a finding.
V-238215
False
UBTU-20-010042
Verify the SSH package is installed with the following command:
$ sudo dpkg -l | grep openssh
ii openssh-client 1:7.6p1-4ubuntu0.1 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:7.6p1-4ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:7.6p1-4ubuntu0.1 amd64 secure shell (SSH) sftp server module, for SFTP access from remote machines
If the "openssh" server package is not installed, this is a finding.
Verify the "sshd.service" is loaded and active with the following command:
$ sudo systemctl status sshd.service | egrep -i "(active|loaded)"
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2019-01-24 22:52:58 UTC; 1 weeks 3 days ago
If "sshd.service" is not active or loaded, this is a finding.
M
5318