mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Tests SSH before running
This commit is contained in:
parent
1b158f0a2b
commit
3ee922011f
@ -295,6 +295,12 @@ function validate_os_sshpass {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "$INFO $MESSAGE"
|
echo -e "$INFO $MESSAGE"
|
||||||
|
|
||||||
|
MESSAGE="Testing SSH Connection"
|
||||||
|
echo -e "$STAT $MESSAGE"
|
||||||
|
${sshpassword}ssh -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit'
|
||||||
|
error_validate
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# List GS Arguments
|
# List GS Arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user