Skip to content

pj8/sssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sssh

About

  • Bash script to run ecs-exec on Amazon ECS Fargate containers.

Prerequisites

Install

git clone https://github.com/pj8/sssh.git
cd sssh
./sssh

Usage

# Select profile, cluster, service, container, and task, and run sh
./sssh

# Run port forwarding
./sssh --remote-host rds.example.com --remote-port 3306 --local-port 13306

# Specify OTP for MFA authentication
./sssh --profile foo-profile --otp 123456

# Help
./sssh --help

Note: Before running the script, ensure that your AWS CLI session profile is configured to output in JSON format. Otherwise, the script will crash. You can set the output format as JSON when you run aws configure sso.

Special thanks to contributor