How to enable SSH on boot in Ubuntu MATE

Solution 1:

I think the command you're looking for is:

sudo systemctl enable ssh

(Note the letter "l" at the end of systemctl, rather than the number "1" at the end of systemct1 as you currently have it in the question.)

Solution 2:

I experienced a problem when commands from this topic wouldn't help. I am on Mate 18.04 and I got ssh to work only after I reinstalled openssh-server and run command from topic. So if you experience the same problem, just:

sudo apt-get remove openssh-server
sudo apt-get install openssh-server
# I rebooted system after install
sudo systemctl enable ssh

Solution 3:

To enable SSH server, you can try opening up a terminal window and typing the following command:

sudo service ssh enable

and then SSH server should be enabled on restart.