diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-04-11 21:00:07 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-04-11 21:00:07 +0900 |
commit | f2f0dab51583dafc6b6f38db7635b6376783c25c (patch) | |
tree | 7462f6d8ba3cf0c30e67ec715558d8db266ca845 /scripts | |
parent | c9fe3993aaef59cf1dafda2b12854a18a69c0e57 (diff) |
test: get fingerprint for port 8022 before test
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test-in-container.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/test-in-container.sh b/scripts/test-in-container.sh index cb129e0..21a9969 100755 --- a/scripts/test-in-container.sh +++ b/scripts/test-in-container.sh @@ -18,10 +18,12 @@ if [ ! -e /var/run/sshd.pid ]; then sleep 1 fi -ssh-keyscan localhost >> ${HOME}/.ssh/known_hosts -ssh-keyscan ip6-localhost >> ${HOME}/.ssh/known_hosts -ssh-keyscan 127.0.0.1 >> ${HOME}/.ssh/known_hosts -ssh-keyscan ::1 >> ${HOME}/.ssh/known_hosts +for port in 22 8022; do + ssh-keyscan -p $port localhost >> ${HOME}/.ssh/known_hosts + ssh-keyscan -p $port ip6-localhost >> ${HOME}/.ssh/known_hosts + ssh-keyscan -p $port 127.0.0.1 >> ${HOME}/.ssh/known_hosts + ssh-keyscan -p $port ::1 >> ${HOME}/.ssh/known_hosts +done # Run test python3 -m pytest -v ../test |