blob: 7cd9f2569e6d77b1542348c3b0335f30fd45d212 (
plain)
1
2
3
4
5
6
7
|
## 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 {
return 1
}
|