Healthcheck
Goauld server healthcheck
To ensure tunnels are functioning correctly, some healthcheck scripts/tools are provided.
Warning
The provided healthchecks only verify that the SSHD server is reachable through the tunnel by checking the SSHD banner.
SSH over TLS
echo "00000000000000000000000000000000\n" | timeout 1 openssl s_client -quiet -connect $TLS_DOMAIN$:$TLS_PORT$ 2>/dev/null | grep -q "SSH-2.0-"
SSH over WebSocket
Building
go build -o ws-healthcheck ./healthcheck/websocket
Running
{ echo "" ; sleep 1; } | ws-healthcheck "wss://$WS_DOMAIN/wssh/00000000000000000000000000000000" 2>/dev/null
SSH over DNS
Building
go build -o dns-healthcheck ./healthcheck/dns/dnstt-client
Running
{ echo "00000000000000000000000000000000S" ; sleep 1; } | dns-healthcheck -udp "$DNS_SERVER:$DNS_SERVER_PORT" "$DNS_DOMAIN" 2>/dev/null | grep -q "SSH-2.0-"
Note
The “S” is required at the end of the echo