Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local to remote port forwarding for Sish/Ngrok alternative #373

Open
kwuite opened this issue Jan 31, 2023 · 0 comments
Open

Local to remote port forwarding for Sish/Ngrok alternative #373

kwuite opened this issue Jan 31, 2023 · 0 comments

Comments

@kwuite
Copy link

kwuite commented Jan 31, 2023

Is your feature request related to a problem? Please describe.
I have setup an Ngrok alternative server with sish that uses local to remote port forwarding and creates on-the-fly dns access via a wildcard certificate on the remote server.

This works really nice for showing customers my work or access on demand CI servers by dns for problem solving. Now I want to be able with python to natively (no exec with openssh) setup port forwarding channels and acquire a https host at the remote server.

The call you can make with sish is equivalent to: ssh -R hereiam:80:localhost:8080 ssi.sh and would generate a dns called hereiam.ssi.sh (I have my own server, this domain no longer works).

Describe the solution you'd like
Is it possible with this library to use the -R argument remote forwarding logic?

Describe alternatives you've considered
I tried tunnelssh and paramiko but their -R and -L argument only support exact IP:PORT syntax.

Additional context
Is this at all possible to do with Python or maybe another language? Would love to hear some input cause I've been searching for days now. Thanks for the support.

I can send server credentials for testing if anyone likes to help, I locally work with:

sshpass -p <here_should_be_a_password> ssh -o "VerifyHostKeyDNS yes" -o "StrictHostKeyChecking no" -o "PubkeyAuthentication=no" -v -p 2222 -R test:80:localhost:8080 dynamic.kelvin.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant