Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 852 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 852 Bytes

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.