Install openssh server if not already installed.
sudo apt update
sudo apt install openssh-server
Check the status of the openssh-server, it should show Active: active (Running)
sudo systemctl status ssh
To enable firewall to allow ssh
sudo ufw allow ssh