Open crane-denny opened 2 years ago
Good idea!!!
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
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