Skip to content

Instantly share code, notes, and snippets.

@nicobn
nicobn / gist:8c76b4829a604dea03caa68289f66495
Created August 12, 2023 00:11
Get a file from an instance using SSM
# Assumptions:
# - SSM agent is installed on instance
# - Netcat is installed on instance
# - Port 1234 is accessible and no other process is listening
# Set instance id
export INSTANCE_ID="i-123123123"
# Shell 1: Start session
aws ssm start-session --target $INSTANCE_ID