JAEN

Cloud

aws ssm start-session

CautionSession Manager shell

aws ssm start-session --target <instance-id>

Shell into EC2 with no open SSH port, no keys, no bastion — and sessions are logged.

Examples

  • aws ssm start-session --target i-0abc123Open a session

Syntax

aws ssm start-session --target i-xxxx

Before you run it

Commands hit the instance directly.

Used when you see

Can't SSH into EC2
4
Use SSM Session Manager as the fallback doorWith the agent and role, you don't need SSH at all.
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store