Skip to content

Commit 8db4d72

Browse files
authored
fix: remove invalid slash for ssh user home directory path
1 parent 77e5aff commit 8db4d72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-ssm-ec2-proxy-command.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ aws ssm send-command \
5151
--document-name 'AWS-RunShellScript' \
5252
--comment "Add an SSH public key to authorized_keys for 60 seconds" \
5353
--parameters commands="\"
54-
mkdir -p ~/${ssh_user}/.ssh
55-
cd ~/${ssh_user}/.ssh || exit 1
54+
mkdir -p ~${ssh_user}/.ssh
55+
cd ~${ssh_user}/.ssh || exit 1
5656
authorized_key='${ssh_public_key} ssm-session'
5757
echo \\\"\${authorized_key}\\\" >> authorized_keys
5858
sleep 60

0 commit comments

Comments
 (0)