diff options
Diffstat (limited to 'etc/functions/check_ssh')
-rw-r--r-- | etc/functions/check_ssh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/functions/check_ssh b/etc/functions/check_ssh index 7cd9f25..2c7cca7 100644 --- a/etc/functions/check_ssh +++ b/etc/functions/check_ssh @@ -1,5 +1,6 @@ ## vim:ft=zsh ## check_ssh - returns true if a machine is reachable and allowing logins on ssh +## Usage: check_ssh <host> if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] { return 0 } else { |