Skip to content

[BUG] SSH service is not restarted in ubuntu 24.04 #536

@GauthierPLM

Description

@GauthierPLM

Describe the bug
During setup, the ssh service is not properly restarted at the end of the setup process.
If SSH port has been changed, we are locked outside the machine as ufw only allows the new port but sshd is still listening on the old port.

The service name is now ssh and no more sshd, maybe this causes the issue?

To Reproduce

  1. Setup a fresh ubuntu 24.04 machine.
  2. Change SSH port to 12322 (or any other port)
  3. use any as FW_ADMIN value.
  4. run ubuntu.sh
  5. once completed, try to SSH into the machine -> connection is refused.

Expected behavior

ssh.service should be properly restarted.

System (lsb_release -a):

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions