Quick and easy way to ssh into multiple EC2 instances based on ASG names.
- iTerm2 - Please install this first if you don't have iterm2.
- homebrew
- AWS CLI:
brew install awscli
and then make sure you configure it usingaws configure
- terminator - Please install this first if you don't have terminator installed:
sudo apt-get install terminator
- python module: configobj :
sudo pip install configobj
- AWS CLI:
sudo apt-get install awscli
and then make sure you configure it usingaws configure
In an appropriate directory
mkdir /tmp/sshall && cd /tmp/sshall && curl -L https://github.com/urjitbhatia/sshall/releases/download/v4.0/sshall.tar.gz | tar xv && ./install
In your favorite terminal window:
sshall myBestAutoScalingGroup
Opening multiple ssh windows for large number of instances can cause your machine to run out of memory. sshall
will warn if if finds more than 15 target instances to ssh into.
=======
Mac users Protip : use apple + shift + i
to type into all the panes simultaneously (iTerm2 feature)
- This doesn't page yet. So don't target groups that have more than ~15 instances.
- Make sure AWS cli is installed and works (including credentials etc).
- I've tested this with about 20 panes max and memory burden is quite noticeable at that point.
- Paging panes
- Other filters