Step1: First is to open the ubuntu’s terminal and type the command “sudo apt update”.
This is a Linux
system administration command that updates the list of available packages and their versions
Step 2: Install the OpenSSH package using the command “sudo apt install openssh-server”. This package
allows the system to act as an SSH server, enabling remote secure access via the SSH (Secure Shell)
protocol.
Verify Installation: You can check if SSH is installed and running with: “sudo systemctl status ssh”
If it's running, you should see the service status as "active (running)".
Start SSH Service (if not already running): “sudo systemctl start ssh”
Enable SSH to Start on Boot (optional): “sudo systemctl enable ssh”
Once installed and running, your Ubuntu machine can accept SSH connections, allowing secure remote
access.
The command “sudo systemctl status ssh” is used to check the current status of the SSH (Secure Shell)
service.
Running this command shows whether the SSH service is active (running), inactive, or stopped, along
with additional details.