diff options
Diffstat (limited to 'etc/functions')
-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 26ee9fa..7cd9f25 100644 --- a/etc/functions/check_ssh +++ b/etc/functions/check_ssh @@ -1,4 +1,5 @@ ## vim:ft=zsh +## check_ssh - returns true if a machine is reachable and allowing logins on ssh if [[ $(ssh $1 'echo foo' 2> /dev/null < /dev/null ) == foo ]] { return 0 } else { |