1

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?

2
  • 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. Commented Nov 23, 2022 at 12:09
  • 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'."
    – Greenfly77
    Commented Nov 23, 2022 at 14:30

1 Answer 1

1

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.

2
  • Please upvote the useful answers and comments. This builds the community by awarding the active and knowledgeable users. Commented Nov 23, 2022 at 14:48
  • 1
    I would and I tried, but I am not allowed (reputation is not sufficient).
    – Greenfly77
    Commented Nov 23, 2022 at 15:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .