Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
/ sugar Public archive

AWS EC2 SSH tool for easy access to all of your instances with a simple shell command

Notifications You must be signed in to change notification settings

scopely/sugar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sugar SSH

Requirements

  • Node.JS of any recent vintage
  • SSH keys stored in ~/.ssh/ and named after the AWS keypairs
  • ~/.aws/config file with credentials (details)
    • For a good experience, include the region

Installation and Updating

npm install -g sugar-ssh

Usage

  • sugar <instance filter>
  • sugar <instance filter>@<profile>
  • sugar -f <port to forward> <instance filter>

If multiple instances match the filter, and they appear similar (based on Name), then one will be randomly chosen.

Examples

  • sugar http
  • sugar postgres@prod
  • sugar forward 8000 webserv@prod