Debian / Ubuntu: sudo apt-get install openssh-server
RHEL / CentOS / Fedora: sudo dnf install openssh-server
SysVinit:
sudo /etc/init.d/sshd start
SystemD:
sudo systemctl enable sshdsudo systemctl start sshd
If unsure of what which system manager your distro uses, try this:
pidof systemd && echo "systemd" || echo "sysvinit"
OpenSSH client is commonly found already installed in most distros, but here are the steps in case it isn't. You can also use Putty as it is very popular and user-friendly.
Debian / Ubuntu: sudo apt-get install openssh-server
RHEL / CentOS / Fedora: sudo dnf install openssh-server
Try to login into the server using ssh user@server-name
In this tutorial, you learned how to install the OpenSSH server application and how to connect to that using a SSH client.