mirror of
https://github.com/openssh/libopenssh
synced 2026-04-21 04:06:54 +00:00
a per connection state struct, add a initial API that could be used for a proxy (see ssh-proxy.c) Joint work with Matthias Pitzl, Stefan Rinkes, Bernhard Zaun and Arne Becker.
13 lines
496 B
Plaintext
13 lines
496 B
Plaintext
debugging client:
|
|
% ./ssh-proxy/obj/ssh-proxy nc -vvv 127.0.0.1 22
|
|
|
|
% ssh-keyscan -t ecdsa 127.0.0.1 | sed 's/^[^ ]* //' > /tmp/hk.pub
|
|
% ./ssh-proxy/obj/ssh-proxy -h /tmp/hk.pub nc -vvv 127.0.0.1 22
|
|
|
|
debugging server:
|
|
% ./ssh/obj/ssh -o 'proxycommand ./ssh-proxy/obj/ssh-proxy -s' ignore
|
|
|
|
with hostkey:
|
|
% ssh-keygen -t ecdsa -f /tmp/hk2
|
|
% ./ssh/obj/ssh -o hostkeyalgorithms=ecdsa-sha2-nistp256 -o hostkeyalias=foo1234 -o 'proxycommand ./ssh-proxy/obj/ssh-proxy -h /tmp/hk2 -s' ignore
|