Unit ssh.service could not be found

Hi everyone,

I am trying to configure a small NixOS server on VirtualBox, and I would like to ssh onto it. However, I cannot make the ssh server work:

$ sudo systemctl status ssh
Unit ssh.service could not be found

My configuration:

services.openssh.enable = true;

Thank you :slight_smile:
Davide

The unit in question is called sshd, i.e. systemctl status sshd.

Btw in case it helps, all system services generated by NixOS can be found below /etc/systemd/system.

1 Like

Oops! My bad! thank you very much