Install SSH on Ubuntu
To install the OpenSSH client applications on your Ubuntu system, use this command at a terminal prompt:
sudo apt install openssh-client
To install the OpenSSH server application, and related support files, use this command at a terminal prompt:
sudo apt install openssh-server
Install SSH on Debian As root
To install the OpenSSH client applications on your Debian system, use this command at a terminal prompt:
apt install openssh-client
To install the OpenSSH server application, and related support files, use this command at a terminal prompt:
apt install openssh-server