From fc63a8ef820974604cb3dc31920c131e031c02c7 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 18 Jun 2022 10:59:43 +0300 Subject: [PATCH] Wrapper script for SSH over SSM. --- Documents/bin/ssmh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 Documents/bin/ssmh diff --git a/Documents/bin/ssmh b/Documents/bin/ssmh new file mode 100755 index 0000000..162b4a5 --- /dev/null +++ b/Documents/bin/ssmh @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +exec ssh \ + -o 'ProxyCommand aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters portNumber=%p' \ + -o 'UserKnownHostsFile /dev/null' \ + -o 'StrictHostKeyChecking no' \ + "$@" -- GitLab