Score:0

systemd not starting ssh server

ps flag

attempting to start ssh returns Failed to start ssh.service: Unit ssh.service not found.

trying to install it retuns E: Package 'openssh-server' has no installation candidate.

ubuntu 20.04 LTS

Doug Smythies avatar
gn flag
The service name is sshd. so, `sudo systemctl status sshd` etc...
raj avatar
cn flag
raj
@DougSmythies No, the **service** name is `ssh`. The **program** name is `sshd`. `service ssh status` or `systemctl status ssh` displays as the first line on my system: `ssh.service - OpenBSD Secure Shell server`.
raj avatar
cn flag
raj
@makerio Do you have both ssh **client** and ssh **server** installed? These are two separate packages on Ubuntu: `openssh-client` (which is installed by default) and `openssh-server` (which you need to install manually to run a ssh server).
Doug Smythies avatar
gn flag
@raj : I see both seem to work. I stand corrected. I guess one aliases to the other.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.