cluelessh/bin/cluelessh-faked/smoke-test.sh
2024-08-24 00:51:47 +02:00

18 lines
342 B
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
pkill cluelessh-faked || true
cargo build -p cluelessh-faked
cargo run -p cluelessh-faked &
sleep 1
ssh -p 2222 localhost true
ssh -p 2222 -oCiphers=aes256-gcm@openssh.com \
-oHostKeyAlgorithms=ecdsa-sha2-nistp256 \
-oKexAlgorithms=ecdh-sha2-nistp256 127.0.0.1 true
pkill cluelessh-faked