sshtunnel icon indicating copy to clipboard operation
sshtunnel copied to clipboard

Support dynamic port forwarding

Open crane-denny opened this issue 2 years ago • 3 comments

I am using a socks5 proxy to tunnel some of my requests through. I would love to setup this tunnel dynamicaly within my application instead of having it running always on my computer and then not knowing that it crashed or something.

ssh -D 127.0.0.1:8080 -q -C -N -f -v -l $USERNAME $IP

Paramiko is about to support this feature: https://github.com/paramiko/paramiko/pull/1873

crane-denny avatar Jan 09 '22 17:01 crane-denny

Good idea!!!

liuhuan72 avatar Aug 21 '22 12:08 liuhuan72

https://github.com/pahaz/sshtunnel/pull/93

liuhuan72 avatar Aug 21 '22 12:08 liuhuan72

https:// github.com /paramiko/paramiko/blob/main/demos/forward.py

https:// github.com /paramiko/paramiko/blob/main/demos/rforward.py

https:// github.com /paramiko/paramiko/blob/5cd4a085a11940436111b6b6f93aa369c9fb2a92/demos/demo_socks_proxy.py

liuhuan72 avatar Aug 21 '22 15:08 liuhuan72