Created
July 19, 2023 03:49
-
-
Save riywo/2631cf68e833cf492616b4ad0db87e08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host i-* | |
GSSAPIAuthentication no | |
StrictHostKeyChecking no | |
UserKnownHostsFile /dev/null | |
LogLevel ERROR | |
IdentityFile ~/.ssh/id_rsa | |
ProxyCommand sh -c 'aws ec2-instance-connect send-ssh-public-key --instance-id %h --instance-os-user %r --ssh-public-key file://~/.ssh/id_rsa.pub && exec aws ec2-instance-connect open-tunnel --instance-id %h' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SSH to Amazon EC2 instance using EC2 Instance Connect.