summaryrefslogtreecommitdiffstats
path: root/tests/01-ssh_test_via_NAS.sh
blob: 2dc871c43c50ce5f191276b91de2c3071c5f2d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

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}

exit $?