1.- Install with apt-get command on Ubuntu:
sudo apt-get install openssh-server
1.- Install with dnf command on Fedora:
sudo dnf install openssh-server
2.- Enable the ssh service:
sudo systemctl enable sshd
3.- Configure to start the ssh service on boot:
sudo systemctl start sshd
4.- Check that the SSH server is listening on port 22 with the netstat command:
netstat -plant | grep 22
5.- Validate the installed ssh server version:
ssh -V