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
More on TLS, Certificates & Network Security
How do you manage certificates at scale without outages?IntermediateHow does cert-manager work in Kubernetes?IntermediateWhat is the best way to terminate TLS in AWS?IntermediateWhat is SPIFFE/SPIRE and why do platforms adopt it?IntermediateHow do you handle TLS configuration drift across many servers?IntermediateWhat are the risks of terminating TLS at the edge and sending plain HTTP internally?Advanced