Skip to content

Stop Whitelisting Port 22: SSH into Private EC2 from GitHub Actions via AWS SSM 🔐

7.3 relevance
Score Breakdown
technical depth
8
novelty
5
actionability
9
community
6
strategic
6
personal
9

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

Practical guide for secure SSH via SSM, directly applicable to cloud infrastructure workflows.

AI/ML dev.to
Stop Whitelisting Port 22: SSH into Private EC2 from GitHub Actions via AWS SSM 🔐
Summary

AWS SSM Session Manager eliminates the need for port 22 whitelisting by having the SSM agent initiate an outbound connection, with IAM as the auth layer. The ankurk91/setup-ssh-over-ssm-action GitHub Action automates ephemeral SSH key generation via EC2 Instance Connect (60-second validity) and configures the runner's SSH config, using OIDC for short-lived AWS credentials. No secrets, no static keys, no security group rules.

Author

Ankur K

More from Ankur K →