ListenAddress 0.0.0.0/:: → Ensures SSH is accessible from all regions / networks (Depends on reachability required).
Copy the contents of the sshd_config_desired from into the /etc/ssh/sshd_config_effective file cp /etc/ssh/sshd_config_desired /etc/ssh/sshd_config_effective
restart the sshd service sudo systemctl restart sshd.service
If the sshd.service is running healthily, skip this step. If the sshd.service still complains with errors related to {key_dir}, stating "Unable to load host key." Follow the below procedure to recreate the hostKeys
Identify the host keys sshd expects: grep ^HostKey /etc/ssh/sshd_config_effective
Check if those files exist ls -l /etc/ssh/ssh_host_*
Generate missing host keys: sudo ssh-keygen -A Note: This regenerates all missing host keys (RSA, ECDSA, Ed25519).
Fix file ownership and permissions as the private keys must be owned by root:root and 600: sudo chown root:root /etc/ssh/ssh_host_* sudo chmod 600 /etc/ssh/ssh_host_*_key Public keys (*.pub) can be 644.
Restart sshd.service sudo systemctl restart sshd.service sudo systemctl status sshd.service