version 1.0 to : you can ssh the host easily
modify if test
  $1 == ${KEYS[$i]} has bug, so change to "$1" = "${KEYS[$i]}"