QuestionQ84

VerifiedDevSecOps Pipeline-Build and Test Stage

William Friedkin has been a DevSecOps engineer at an IT company for the past three years. His team leader has asked him to validate the host configuration that runs the Docker containers and perform security checks at the container level by implementing Docker's CIS Benchmark Recommendations. William therefore wants to integrate Docker Bench with Jenkins to incorporate security testing into the DevOps workflow and secure the Docker container.

Before starting the procedure, he wants to install openssh on Ubuntu.

Which of the following commands should William run to install openssh on Ubuntu?

Explanation

On Ubuntu/Debian-based systems, the package management tool is invoked as 'apt-get' (using a hyphen), not 'apt.get', which is not a valid command. The correct syntax to install a package is 'sudo apt-get install <package-name>'. Using the '-s' flag would trigger apt-get's simulation/dry-run mode, which only shows what would happen without actually performing the installation — this is not suitable when an actual installation of openssh-server is required. Therefore, the correct command is 'sudo apt-get install openssh-server'.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!