After today's update of openssh-server (1:9.6p1-3ubuntu13.5 ⇒ 1:9.6p1-3ubuntu13.7) any custom port definition on systemctl edit ssh.socket
configuration like this will not cause ssh.socket
to listen on the IPv4 of the system:
ListenStream=2222
init
will listen only on the IPv6 of the system.
One solution is to put two lines like these when editing with the
systemctl edit ssh.socket
command:and run
The cause of this change is the addition of
to the default configuration at
/usr/lib/systemd/system/ssh.socket
.