Skip to content

Skedulo/aws-instance-connect-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ProxyCommand helper for AWS EC2 Instance connect

Usage

.ssh/aws-proxy.sh [--profile profile] [--region region] [--key key] [--filter filterkey] user host [port]

Here filterkey is the name of the filter to the DescribeInstances API call - it defaults to private-ip-address

e.g. if all your instances in the 10.1.0.0 subnet are in ap-southeast-2, you can use the following ~/.ssh/config

Host 10.1.0.*
User ec2-user
ProxyCommand sh ~/.ssh/aws-proxy.sh --profile test-account --region ap-southeast-2 --key ~/.ssh/test-aws %r %h %p

Host ip-10-1-*
User ec2-user
ProxyCommand sh ~/.ssh/aws-proxy.sh --profile test-account --region ap-southeast-2 --filter private-dns-name --key ~/.ssh/test-aws %r %h %p

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages