Skip to content

Instantly share code, notes, and snippets.

@monakez
Created October 4, 2021 11:58
Show Gist options
  • Save monakez/00e5388daa5a7b12fbd776e0da672248 to your computer and use it in GitHub Desktop.
Save monakez/00e5388daa5a7b12fbd776e0da672248 to your computer and use it in GitHub Desktop.

Revisions

  1. monakez created this gist Oct 4, 2021.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #~/.ssh/config
    # SSH over Session Manager

    host i-* mi-*
    ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"