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 77e5aff commit 8db4d72Copy full SHA for 8db4d72
aws-ssm-ec2-proxy-command.sh
@@ -51,8 +51,8 @@ aws ssm send-command \
51
--document-name 'AWS-RunShellScript' \
52
--comment "Add an SSH public key to authorized_keys for 60 seconds" \
53
--parameters commands="\"
54
- mkdir -p ~/${ssh_user}/.ssh
55
- cd ~/${ssh_user}/.ssh || exit 1
+ mkdir -p ~${ssh_user}/.ssh
+ cd ~${ssh_user}/.ssh || exit 1
56
authorized_key='${ssh_public_key} ssm-session'
57
echo \\\"\${authorized_key}\\\" >> authorized_keys
58
sleep 60
0 commit comments