Last active
November 5, 2015 16:24
-
-
Save robraux/8074caeb57a1563d8c54 to your computer and use it in GitHub Desktop.
knife zshr function
This file contains hidden or 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
kssh() { | |
ssh -l ubuntu `knife node show -l $1 -a ec2.public_ipv4 | tail -n1 | sed 's/ec2.public_ipv4: //'` | |
} | |
# add to your .zshrc file, this expects you have the key in your ssh agent | |
# use: kssh peach-api-16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment