Commit fc63a8ef authored by nimrod's avatar nimrod
Browse files

Wrapper script for SSH over SSM.

parent b350fb1b
Loading
Loading
Loading
Loading

Documents/bin/ssmh

0 → 100755
+8 −0
Original line number Diff line number Diff line
#!/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' \
    "$@"