Good morning to all, I've a problem with ssh. I'm using Ubuntu 23.10, new installation. I've installed openssh-server via
sudo apt install openssh-server
However, when I try to use something related to sshd, e.g.
sudo systemctl start sshd
or
sudo service sshd restart
I've the following error:
Failed to start sshd.service: Unit sshd.service not found
or
Failed to restart sshd.service: Unit sshd.service not found
I've tried to purge openssh several times and in different ways:
sudo apt-get remove --purge openssh-server
sudo apt purge openssh-server
sudo apt autoremove
sudo apt remove ssh --purge -y
and I've tried different ways to reinstall:
sudo apt install openssh-server
sudo apt-get install openssh-server
sudo apt install ssh -y
But I've failed every time. The file in \etc\ssh\sshd_config is correctly installed.
What can be the problem? How can I solve it? Thanks in advice for your help
EDIT
This is the file list according to
dpkg -L openssh-server
dpkg -L openssh-server
, what files do you actually have installed from the package?