Just installed Kubunut 22.10. I configured my /etc/ssh/sshd_config with a custom port.
# Snip
Port 5555
AllowUsers bob
# Snip
Then restart the daemon to refresh the configuration:
sudo ufw allow 5555
sudo systemctl restart ssh
Everything else is default. I have been doing this configuration setup for a decade. Now when I have another system that cannot connect to it. I get the message:
ssh -p 5555 bob@192.168.254.11
I get the error message:
ssh: connect to host 192.168.254.11 port 5555: Connection refused
If I use the default use the default port 22 the connection works. I have rebooted and the problem persists. I have turned-off / disabled ufw. I have tested with both passwords and SSH-keys, but the connection is refused if I don't use the port 22.
Please help? I don't understand why this suddenly broke.