Skip to content

Instantly share code, notes, and snippets.

@ralph-tice
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralph-tice/c3192f8c59e50793d3fc to your computer and use it in GitHub Desktop.
Save ralph-tice/c3192f8c59e50793d3fc to your computer and use it in GitHub Desktop.
Connecting to an EC2 instance in a oneliner
sshto() {
ssh ubuntu@`knife ec2 server list | grep $1 | awk '{print $3}'`
}
# ex usage: sshto i-12341234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment