Interview Prep/Networking/TLS, Certificates & Network Security

How do you restrict SSH exposure in production?

BeginnerProductionTLS, Certificates & Network Security
Answer

No public port 22: use SSM Session Manager or EC2 Instance Connect Endpoint. If SSH is required, use certificate-based auth with short-lived certs (Vault SSH, Teleport, step-ssh), restrict source ranges, disable password auth (PasswordAuthentication no), rotate keys, and log sessions.

# /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
AllowGroups ssh-users
All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security