Last active
August 29, 2015 14:06
-
-
Save ralph-tice/c3192f8c59e50793d3fc to your computer and use it in GitHub Desktop.
Connecting to an EC2 instance in a oneliner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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