We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f956c commit fcf3ce1Copy full SHA for fcf3ce1
aws-ssm-ec2-proxy-command.sh
100644
100755
@@ -52,7 +52,7 @@ aws ssm send-command \
52
--document-name 'AWS-RunShellScript' \
53
--comment "Add an SSH public key to authorized_keys for ${ssh_public_key_timeout} seconds" \
54
--parameters commands="\"
55
- mkdir -p ~${ssh_user}/.ssh && cd $_ || exit 1
+ mkdir -p ~${ssh_user}/.ssh && cd \$_ || exit 1
56
57
authorized_key='${ssh_public_key} ssm-session'
58
echo \\\"\${authorized_key}\\\" >> authorized_keys
0 commit comments