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

Sugar SSH

  • Node.JS of any recent vintage
  • SSH keys stored in ~/.ssh/ and named after the AWS keypairs

npm install -g sugar-ssh

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


  • sugar http
  • sugar postgres@prod
  • sugar -f 8000 webserv@prod

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