Skip to content

Commit 916e915

Browse files
#20 - prevent password auth in future
1 parent 3844f86 commit 916e915

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sagemaker_ssh_helper/sm-connect-ssh-proxy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ echo "Connecting to $INSTANCE_ID as proxy and starting port forwarding with the
5757
ssh -o User=root -o IdentityFile="${SSH_KEY}" -o IdentitiesOnly=yes \
5858
-o ProxyCommand="aws ssm start-session --region '${CURRENT_REGION}' --target '${INSTANCE_ID}' --document-name AWS-StartSSHSession --parameters portNumber=%p" \
5959
-o ServerAliveInterval=15 -o ServerAliveCountMax=3 \
60+
-o PasswordAuthentication=no \
6061
-o StrictHostKeyChecking=no -N $PORT_FWD_ARGS "$INSTANCE_ID"

0 commit comments

Comments
 (0)