Skip to main content

Easy AWS SSHing

Project description

AWS SSH Utils

Version License Supported Python Versions

pip install aws-ssh-utils

aws_ssh ec2

aws_ssh emr

aws_ssh emr-all

This allows you to interactively SSH to an EC2 instance, EMR instance, or all EMR instances with TMUX.

It utilizes questionary to ask you which instance you want to connect to.

EC2

Select an instance from an interactive list. You can filter the instances by name.

$ aws_auth ec2 --help
Usage: aws_ssh ec2 [OPTIONS]

  Asks user which EC2 instance they want to connect to, then opens an
  interactive SSH session to the instance

Options:
  -p, --profile TEXT    Which AWS profile to use
  -r, --region TEXT     Which AWS region to use
  -u, --user TEXT       Which user to connect as
  --private / --public  Connect to the instance's private or public IP
  -k, --key-file TEXT   Which key file to use to connect
  --help                Show this message and exit.

EMR

Select the EMR cluster, instance group, and instance to connect to.

$ aws_ssh emr --help
Usage: aws_ssh emr [OPTIONS]

  Asks user which Cluster and EC2 instance they want to connect to, then opens an interactive SSH session to the instance

Options:
  -p, --profile TEXT    Which AWS profile to use
  -r, --region TEXT     Which AWS region to use
  -u, --user TEXT       Which user to connect as
  --private / --public  Connect to the instance's private or public IP
  -k, --key-file TEXT   Which key file to use to connect
  --help                Show this message and exit.

EMR All

Select the EMR cluster to connect to. Then creates a new TMUX session with a window per instance. Each window will have an SSH connection to that instance open.

$ aws_ssh emr-all --help
Usage: aws_ssh emr-all [OPTIONS]

  Asks user which Cluster and EC2 instance they want to connect to, Then
  prints a tmux cli statement that will open a new session with a window per
  ec2 instance with ssh shell already opened.

Options:
  -p, --profile TEXT    Which AWS profile to use
  -r, --region TEXT     Which AWS region to use
  -u, --user TEXT       Which user to connect as
  --private / --public  Connect to the instance's private or public IP
  -k, --key-file TEXT   Which key file to use to connect
  --help                Show this message and exit.

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

aws_ssh_utils-0.2.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

aws_ssh_utils-0.2.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file aws_ssh_utils-0.2.2.tar.gz.

File metadata

  • Download URL: aws_ssh_utils-0.2.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for aws_ssh_utils-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a0dd9cdc3ae5dd826b5765f16373281201fe1cc6fb4290c08810c2d60c5a320d
MD5 76318ac59e413288272288b394e79db8
BLAKE2b-256 69985c0279f5a51b9e9e5ac3cba7b02d2a24f82255f31cd85d06b437c7306471

See more details on using hashes here.

File details

Details for the file aws_ssh_utils-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_ssh_utils-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c3309cff63ab74193f94d65aa1f0c7e50865186c64f6ce1cc29c88f35001048
MD5 23bb6cdd39f7c388dc8500cee1fd528f
BLAKE2b-256 e8d8f3de00b6e47ec3449be05c1ea052c528ebfe992e299a002ce1cb11714409

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