SV-219313r610963_rule
V-219313
SRG-OS-000423-GPOS-00187
UBTU-18-010420
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 that the "ssh" service is running.
# sudo systemctl start sshd.service
Check that 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.
Check that 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-219313
False
UBTU-18-010420
Check that 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.
Check that 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
4055