Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.41 KB

README.rst

File metadata and controls

55 lines (39 loc) · 1.41 KB

SSH to Your EC2 Instance Instantly

SSH2 is an interactive command line tool which allows you to quickly ssh to an EC2 instance. You can select from a list of running servers under your account.

image0 image1

Usage

$ ssh2 1
$ ssh2 -h
Usage: ssh2 [options] [server_number]
  server_number: a numeric value corresponding to the server number
  e.g.: 'ssh2 1' will ssh into the 1st server in the list.

Options:
  -h, --help            show this help message and exit
  -x, --bust-cache      refetch servers list from AWS
  -u USER, --user=USER  provide user (default: ubuntu)
  -i IDENTITY, --identity=IDENTITY
                        provide identity file
  -p PROFILE, --profile=PROFILE
                        provide AWS profile
  --ip=IP               connect using IP instead of DNS

Requirements

Installation

git clone https://github.com/soheil/ssh2.git
cd ssh2
ln -sf $(pwd)/ssh2 /usr/local/bin/

Author

Soheil Yasrebi, [@soheil](https://twitter.com/soheil)