-
-
Save zdk/03b62240d28c1c7e09a484a42f2783ca to your computer and use it in GitHub Desktop.
My stupid SSH script. But it's smart enough to be useful in my daily work.
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
#!/bin/bash | |
SSH="/usr/local/bin/ssh" | |
case "$*" in | |
*'@'*) $SSH $* ;; | |
*' -l'*) $SSH $* ;; | |
*192\.168*) $SSH -l zdk $*;; | |
*) $SSH -l ec2-user $* ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment