Score:0

SSH service fails to start

in flag

I just created a virtual machine based on cloud images (of Lunar Lobster) on VMWare. Unfortunately it fails to start ssh. If I try to enable or restart the service I get:

enter image description here

And if I check journal it is empty (not containing anything regarding ssh). If I check on status it responds:

enter image description here

Unfortunately no details are provided. How do I search for the reason or fix that error?

Artur Meinild avatar
vn flag
Could you provide the full output of `sudo systemctl status ssh.service`? It also has some log information. And please as text in your post, and not images. Thanks.
Greenfly77 avatar
in flag
Totally, agreed, VMWare console does not let me copy text, so apologies for pictures here. The log below only says "ssh.service: Start request repeated too quickly" and then "Failed with result 'exit-code'."
Score:0
in flag

Thanks to Rachel's answer about how to test for errors and how to debug, I was able to fix that by regenerating host keys.

The solution was

/usr/bin/ssh-keygen -A

After a service restart ssh operates as expected.

Patryk Mazurkiewicz avatar
za flag
Please upvote the useful answers and comments. This builds the community by awarding the active and knowledgeable users.
Greenfly77 avatar
in flag
I would and I tried, but I am not allowed (reputation is not sufficient).
I sit in a Tesla and translated this thread with Ai:

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.