marcinbunsch / aws-ssh

Easily log into AWS instances that are sitting behind bastion hosts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-ssh

Easily log into Elastic Beanstalk instances that are sitting behind bastion hosts.

TODO

  • support OpsWorks instances
  • support non-Amazon Linux boxes (ec2-user is currently hard-coded)

Requirements

Usage

Your Elastic Beanstalk project must already be set up with a .elasticbeanstalk/config.yml file.

From your Elastic Beanstalk project directory:

$ aws-ssh -b <bastion hostname> <Elastic Beanstalk environment name>

You will need to have the ssh key used to log into both the bastion host and the Elastic Beanstalk host available to ssh. The easiest way to do this is to use ssh-add to add it to your agent. On a Mac, you can do:

$ ssh-add -K <private key>

This will add your private key to your keychain and should make it always available for use.

About

Easily log into AWS instances that are sitting behind bastion hosts

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%