# ssmctl v2: SSM Session Manager without the pain (shell, port forwarding, commands and file copy over SSM) — retained record

> Retained reddit record from reddit:aws.

Canonical: https://highsignal.app/data/records/9323049364fff12f

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:aws)  published 2026-09-27 18:21 ingested 2026-09-28 02:40

[original source ↗](https://www.reddit.com/r/aws/comments/1wrrgh2/ssmctl_v2_ssm_session_manager_without_the_pain/)

## retained text



```
SSM is the right way to reach private EC2 instances: no bastion, no port 22, no SSH keys, and everything goes through IAM and CloudTrail. But the CLI makes you work for it:

    aws ssm start-session --target i-0abc1234def5678ab \
      --document-name AWS-StartPortForwardingSessionToRemoteHost \
      --parameters '{"host":["rds.internal"],"portNumber":["5432"],"localPortNumber":["5432"]}'

ssmctl is an open-source Go CLI that keeps the same security model and removes the friction:

    ssmctl forward web-1 --local 5432 --remote rds.internal:5432

**v2 in one line:** your entire SSM-managed fleet (shells, tunnels, commands, files, secrets), one short command away.

    ssmctl list                                          # see your managed fleet
    ssmctl connect web-1                                 # shell
    ssmctl forward web-1 --local 5432 --remote db:5432   # tunnel to RDS, Redis, anything for local access
    ssmctl run web-1 -- df -h /                          # one-off command, exit code preserved
    ssmctl run --filter api -- uptime                    # same command across a fleet
    ssmctl cp web-1:/var/log/app.log .                   # file transfer
    ssmctl param get /myapp/prod/DB_PASSWORD             # Parameter Store

It works with Linux and Windows targets, has `--output json` for scripting, and uses your existing AWS profiles and SSO. There's no extra agent or infrastructure.

`brew tap rhysmcneill/ssmctl && brew install ssmctl`

Want to contribute? 🔗 [https://github.com/rhysmcneill/ssmctl](https://github.com/rhysmcneill/ssmctl)
```



document fetched 2026-09-28 00:34 · canonical https://reddit.com/r/aws/comments/1wrrgh2/ssmctl_v2_ssm_session_manager_without_the_pain
