Ubuntu 12.04 - I can ssh into the server but sshd is an unrecognized service
The SSH server service in Ubuntu is named "ssh". Just run sudo service ssh restart
to restart it.
Forkbeard
Updated on September 18, 2022Comments
-
Forkbeard over 1 year
I'm trying to setup key based authentication for ssh on my Ubuntu 12.04 server following this tutorial and that.
It's not really working but I have another problem slowing me down, which is that I can't restart the ssh service.
I can ssh to the server without any trouble. If I do
ps aux | grep -i "ssh"
I can see the sshd process but if I doservice sshd restart
then I get "sshd unrecognized service". I can restart ssh but I take it that's a client, not a server.If I Google "sshd unrecognized service" I get to know all about troubleshooting ssh connectivity but that's not my problem.
I tried purging and reinstalling openssh-server, to no effect.
How can I restart the sshd service if that service doesn't exist?
-
dnuttle almost 7 yearsThis may be true of Debian in general. It's the case in Raspbian Jessie.