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
- Setup a fresh ubuntu 24.04 machine.
- Change SSH port to 12322 (or any other port)
- use
any as FW_ADMIN value.
- run ubuntu.sh
- 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
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
sshand no moresshd, maybe this causes the issue?To Reproduce
anyasFW_ADMINvalue.Expected behavior
ssh.serviceshould 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