The ssh
(Secure Shell) package is usually pre-installed in most Linux distributions, but if it’s not installed on your system, you can easily install it using your distribution’s package manager. Here are the steps to install ssh
on some of the most popular Linux distributions:
Debian/Ubuntu
sudo apt-get update
sudo apt-get install openssh-server
Fedora
sudo dnf update
sudo dnf install openssh-server
CentOS
sudo yum update
sudo yum install openssh-server
After the installation is complete, you can start the ssh
service by running the following command:
sudo systemctl start ssh
You can also configure the ssh
service to start automatically at boot time by running the following command:
sudo systemctl enable ssh
Once the ssh
service is running, you can use the ssh
command to connect to remote servers, or to allow remote users to connect to your system. The ssh
command can be used to securely log in to a remote machine, or to execute commands on a remote machine. For more information on how to use the ssh
command, see the manual page by running man ssh
in your terminal.