mirror of
https://github.com/openssh/libopenssh
synced 2026-04-16 09:45:53 +00:00
For now, the 'serialized' proposal is de-serialized, modified, and serialized again in order to change the hostkey algorithm.
10 lines
440 B
Plaintext
10 lines
440 B
Plaintext
# example usage of proxy:
|
|
# generate hostkey
|
|
test -f /tmp/hk2 || ssh-keygen -N '' -t ecdsa -f /tmp/hk2
|
|
# get known hostkey for target (127.0.0.1:22)
|
|
ssh-keyscan -t ecdsa 127.0.0.1 | sed 's/^[^ ]* //' > /tmp/hk.pub
|
|
# start proxy in foreground, enable packet dumping (except auth-requests)
|
|
./ssh-proxy/obj/ssh-proxy -S /tmp/hk2 -C /tmp/hk.pub -L 127.0.0.1:12345:127.0.0.1:22 -dDf
|
|
# connect
|
|
ssh -o hostkeyalias'='egal2 -v 127.0.0.1 -p 12345
|