Skip to main content

SSH into EC2 instances via tag name

Project description

A simple command line utility, allowing you to SSH into you Amazon EC2 instances by their “Name” tag.

A few examples:

% ec2-ssh nginx2
# equivalent to
# ssh ubuntu@ec2-123-45-67-89.compute-1.amazonaws.com

% ec2-ssh root@appserver
% ec2-ssh deploy@nginx2 sudo restart nginx

# accompanying ec2-host script

# w/o arg: prints all active instances
% ec2-host
django1 ec2-123-45-67-89.compute-1.amazonaws.com
django2 ec2-132-45-67-89.compute-1.amazonaws.com
django3 ec2-231-45-67-89.compute-1.amazonaws.com

# w/ arg: prints host name of matching instance
% ec2-host django2
django2 ec2-132-45-67-89.compute-1.amazonaws.com

Changelog

  • 1.0 - initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ec2-ssh-1.1.tar.gz (3.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page