Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Help lies to me about where to put flags #10

@avram

Description

@avram
➜  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions