You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 2, 2019. It is now read-only.
➜ cannonical git:(rework) ✗ sugar --ssh-opts my-host@my-profile
No filter specified
Usage:
sugar [flags] <instance filter>
sugar [flags] <instance filter>@<profile>
Instance filters:
The instance filter will try partial matching against EC2 instance names.
It will also look for exact matches against:
- Public or private IP or hostname
- Instance ID or AMI ID
Flags:
--help Display help text and exit
--dns Just prints the server's public DNS hostname
--list Prints a list of all matching instances
-f port Brings a remote port to your local machine via tunnel
--user name Overrides SSH username (default: autodetected, or ubuntu)
--key keyname Forces using a certain key name. Key must exist in ~/.ssh/
--ssh-opts Prints the argument list that would be passed to `ssh`
Examples:
sugar http
sugar postgres@prod
sugar -f 8000 webserv@prod
scp -r dist/ `sugar webserv@prod --ssh-opts`:public_html/
➜ cannonical git:(rework) ✗ sugar my-host@my-profile --ssh-opts
-i /Users/avram/.ssh/my-key ec2-user@my-aws-hosted-computer.compute-1.amazonaws.com