enable ubuntu for ssh code example Example 1: enable ssh ubuntu $ sudo systemctl status ssh Example 2: enable ssh in ubuntu sudo apt-get update