By default ssh is not installed on Ubuntu desktop. To install we have to run the following command
$ sudo apt-get update
$ sudo apt-get install openssh-server
Once installed we can check if it is running with following command
$ sudo systemctl status ssh
To start ssh at boot up:
$ sudo systemctl enable ssh
Troubleshooting: Incase unable to connect through ssh, please check the Ubuntu firewall status is enabled or not. In this case its is not enabled. If enabled, it has to be allowed through the firewall security.
$ sudo ufw status
$ sudo ufw allow ssh
- KB170053