old-firewall/tests/01-ssh_test_via_NAS.sh

21 lines
425 B
Bash
Raw Normal View History

2013-03-11 01:41:41 +00:00
#!/bin/sh
2013-05-03 08:01:21 +00:00
# the host is not here
exit 0
2013-03-11 01:41:41 +00:00
set -o errexit
set -o pipefail
set -o nounset
NAS_USER="fwtest"
FW_USER="fwtest"
TEST_CMD="/bin/true" # actually, a good choice, because we'll receive non-0 status code anyway if anything fails
/usr/bin/ssh -o IdentityFile="~${FW_USER}/.ssh/id_rsa" -o ConnectTimeout=5 -l "${NAS_USER}" "${HOST_AMANOJAKU}" \
/usr/bin/ssh -l "${FW_USER}" "${HOST_KASHA}" ${TEST_CMD}
2013-03-11 01:41:41 +00:00
exit $?