~/.ssh/
and named after the AWS keypairs~/.aws/config
file with credentials (details)npm install -g sugar-ssh
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.
sugar http
sugar postgres@prod
sugar -f 8000 webserv@prod
--help
displays help and exits--dns
prints only the DNS hostname of the target instance, then exits. Suitable for shell substitution--list
prints a table of all matching instances--user <username>
forces the username used for the serverubuntu
--key <keyname>
overrides the key name for the instance~/.ssh/
-f <port>
brings the remote instance's specified port to your local machine using an SSH tunnel--ssh-opts
prints only the full arguments list for ssh
-i /home/user/.ssh/aws ubuntu@ec2-w-x-y-z.compute-1.amazonaws.com
ssh
or scp
calls