libssh2_delphi icon indicating copy to clipboard operation
libssh2_delphi copied to clipboard

SSH Tunnel

Open marcianobandeira opened this issue 6 months ago • 1 comments

Is it possible to create an SSH tunnel, that is, pass parameters when connecting to the server? For example, via the command line I can map a local port pointing to the server:

ssh -L 5454:localhost:5454 -L 6379:localhost:6379 user@host

in this example, I am mapping my local ports, to ports on the linux server Thanks

marcianobandeira avatar Dec 08 '23 14:12 marcianobandeira

Only api here, no examples. You can find examples:

google: libssh2 tunnel. For example, this "C" example https://github.com/libssh2/libssh2/blob/master/example/tcpip-forward.c https://github.com/marianafranco/libssh2-tunnel-example/blob/master/libssh2-tunnel-example.c

google: libssh2 tunnel delphi Delphi ssh library wrapping libssh2: https://github.com/pyscripter/Ssh-Pascal/blob/master/Source/SshTunnel.pas

pult avatar Dec 09 '23 08:12 pult