diff --git a/checkup b/checkup index 289b77aea835ac6f0d727a4c84dba9d08d6cbc62..f44f49e6a24b780123bbc735839b5858e6fe34f6 100755 --- a/checkup +++ b/checkup @@ -827,7 +827,8 @@ host_pre_start_checks() { # choise host connection command # while checking ssh support # and determine NATIVE_HOSTNAME (a host key in JSON reports) - if NATIVE_HOSTNAME=$(ssh $HOST "hostname" 2>/dev/null); then + if NATIVE_HOSTNAME=$(ssh $HOST "hostname" 2>/dev/null) && + [[ $HOST != "localhost" ]] && [[ $HOST != "127.0.0.1" ]]; then # ssh to remote host and use local psql (default) export CHECK_HOST_CMD="ssh ${HOST}" export SSH_SUPPORT="true"