Skip to main content

awssh

SSH boto3 utility for AWS

Installation

$ aws configure
$ pip install awssh

Requirements

  • Python 2.7

Features

It gives you a list of hosts you have access to and preconfigure ssh with the proper key and user. You can filter by instance name and if it matches only one instance it will log to it.

Usage

usage: awsh [-h] [--region REGION] [--users USERS [USERS ...]]
                   [-i KEY_PATH] [-c COMMAND] [-r REMOTE_HOST]
                   [-p REMOTE_PORT] [-l LOCAL_PORT] [--keys KEYS]
                   [--timeout TIMEOUT] [--console-output] [--version]
                   [instance name key word]

SSH into AWS instances. The default user list assumes that your user is Centos, Ubuntu, or ec2-user. 

positional arguments:
  instance name         Optional instance name or key word as filter. If only one instance is found,
                        it will connect to it directly.

optional arguments:
  -h, --help            Show usage message and exit.
  --users USERS [USERS ...]
                        Users to try (centos, ubuntu, and ec2-user are defaults).
  --region REGION       AWS region.
  -i KEY_PATH, --key-path KEY_PATH
                        Specific key path, overrides, --keys
  -c COMMAND, --command COMMAND
                        Translates to ssh -C
  -r REMOTE_HOST, --remote-host REMOTE_HOST
                        Open a tunnel. Translates to ssh -L <local-port
                        >:<remote-host>:<remote-port> <selected-aws-host>
  -p REMOTE_PORT, --remote-port REMOTE_PORT
                        Port to use on the remote host.
  -l LOCAL_PORT, --local-port LOCAL_PORT
                        Port to use on the local host. Get overwritten by
                        remote port if not defined.
  --keys KEYS           Directory of the private keys.
  --timeout TIMEOUT     SSH connection timeout.
  --console-output      Display the instance console out before logging in.
  --version             Returns awsh's version.

  Examples: 
    "awsh --users user1 user2 --region us-east-2 --keys '~/.ssh' instance-name"
    "awsh instance-name --users user1 user2".

Download files

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

Source Distribution

ssh-aws-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ssh_aws-1.0.1-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

File details

Details for the file ssh-aws-1.0.1.tar.gz.

File metadata

  • Download URL: ssh-aws-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10

File hashes

Hashes for ssh-aws-1.0.1.tar.gz
Algorithm Hash digest
SHA256 83c87ba749db2a77ed1422b2bf7cadad41d1a0e66ae36022cb5ab9af5b634a3f
MD5 af8da6775af407616c4dfed50f388da1
BLAKE2b-256 f439e716607aa784892fa257814e99807804b57c9df62263fb2277f06c7955a7

See more details on using hashes here.

File details

Details for the file ssh_aws-1.0.1-py2-none-any.whl.

File metadata

  • Download URL: ssh_aws-1.0.1-py2-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.10

File hashes

Hashes for ssh_aws-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 2219e27d376d3d8aff8d37ff3193bd6211ee77844ed4c7a3d10e9776da3b3821
MD5 b3374b5c37a7070807061bd375372445
BLAKE2b-256 b6ad97f83d786a0775b1d1b00f052a9b06c4648dcf11b1cc437f7290f4415467

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page