Skip to content

Instantly share code, notes, and snippets.

View jmikedupont2's full-sized avatar
😀
Thanks for the follows! Have a nice day.

Mike DuPont jmikedupont2

😀
Thanks for the follows! Have a nice day.
View GitHub Profile
@jmikedupont2
jmikedupont2 / transfer_ssm_file.sh
Last active March 3, 2025 17:34 — forked from lukeplausin/transfer_ssm_file.sh
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=/opt/agent/strace.log
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session