Skip to content

Commit

Permalink
Increasing SSH timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-khvostishkov committed Nov 27, 2024
1 parent 1102234 commit a1e243b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ Host *.*.sagemaker
PasswordAuthentication no
ConnectTimeout 90
ServerAliveInterval 15
ServerAliveCountMax 4
ServerAliveCountMax 6
ProxyCommand sm-ssh start-proxy %h
User root
```
Expand Down
2 changes: 1 addition & 1 deletion sagemaker_ssh_helper/sm-connect-ssh-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ proxy_command="aws ssm start-session\
ssh -4 -o User=root -o IdentityFile="${SSH_KEY}" -o IdentitiesOnly=yes \
-o ProxyCommand="$proxy_command" \
-o ConnectTimeout=90 \
-o ServerAliveInterval=15 -o ServerAliveCountMax=3 \
-o ServerAliveInterval=15 -o ServerAliveCountMax=6 \
-o PasswordAuthentication=no \
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
$PORT_FWD_ARGS "$INSTANCE_ID"
2 changes: 1 addition & 1 deletion ssh_config_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Host *.*.sagemaker
PasswordAuthentication no
ConnectTimeout 90
ServerAliveInterval 15
ServerAliveCountMax 4
ServerAliveCountMax 6
ProxyCommand sm-ssh start-proxy %h
User root

0 comments on commit a1e243b

Please sign in to comment.