Files
libopenssh/ssh/ssh-proxy.txt
Markus Friedl c905073179 ssh_api.c: offer hostkey algorithms depending on registered keys
For now, the 'serialized' proposal is de-serialized, modified, and
serialized again in order to change the hostkey algorithm.
2012-01-17 14:36:45 +01:00

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