mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-14 16:35:06 +01:00
16 lines
290 B
Bash
Executable file
16 lines
290 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
cargo build -p fakesshd
|
|
|
|
cargo run -p fakesshd &
|
|
|
|
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 fakesshd
|