A cool little tool to SSH to EC2 instances using their names
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



A nifty little CLI tool to SSH to EC2 instances using their names


Have you ever done this?

  1. Login to EC2 Console.
  2. Search for an instance.
  3. Copy its IP address.
  4. Switch to a terminal.
  5. Type ssh and paste in the IP.
  6. Repeat 2-5 for other instances.

I've been in that situation more times than I care to admit. Enter AWSer: A simple Python script that will make your life 95% easier... at least when it comes to SSH'ing into EC2s!




  1. Download the awser.py script and place it in a folder in your path.
  2. [optional] Create a short symlink or alias such as a that points to the script.
  3. Install boto3 if you don't already have it installed: pip3 install boto3 --user
  4. Make sure you've configured your AWS credentials via aws configure.
  5. Start using AWSer!


usage: awser.py [-h] [-r REGION] [-u USER] [-i IDENTITY]
                keywords [keywords ...]

Quickly SSH to EC2 instances by name

positional arguments:
  keywords              Keyword(s) to filter list of servers, i.e. 'core 21a'

optional arguments:
  -h, --help            show this help message and exit
  -r REGION, --region REGION
                        Overrides the default AWS region.
  -u USER, --user USER  Specifies a user for SSH.
  -i IDENTITY, --identity IDENTITY
                        Selects a file from which the identity (private key)
                        is read.
  -d, --public-dns      Use public DNS name instead of IP address to connect.