Skip to content

Instantly share code, notes, and snippets.

@robraux
Last active November 5, 2015 16:24
Show Gist options
  • Save robraux/8074caeb57a1563d8c54 to your computer and use it in GitHub Desktop.
Save robraux/8074caeb57a1563d8c54 to your computer and use it in GitHub Desktop.
knife zshr function
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