Troubleshooting

A new server answers ping, but SSH connection attempts from an admin workstation time out rather than being refused. On the server, ss -tlnp shows sshd listening on 0.0.0.0:22, and firewall-cmd --list-all shows the public zone with only the dhcpv6-client service. What is the BEST fix?

Show the answer

Correct answerB. Permanently add the ssh service to the public zone and reload firewalld

A timeout with sshd already listening means firewalld is silently dropping port 22 traffic, so the ssh service must be allowed permanently in the active zone. Restarting sshd is tempting, but it is already bound to all interfaces and the daemon is not the problem.