irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
305 stars 36 forks source link

Proxy from sshtunnel #42

Closed coreegor closed 3 years ago

coreegor commented 3 years ago

Is it possible to connect to server via jump host by sshtunnel?

irmen commented 3 years ago

Yeah that should be possible, if you're having issues check https://pyro5.readthedocs.io/en/latest/tipstricks.html#pyro-behind-a-nat-router-firewall some of that may be relevant for this too

gkaissis commented 3 years ago

It works fine with sshtunnel in my experiments. Just assign the daemon to the loopback address and port on the server system, do the same with the proxy on the client system and then bind local to remote via ssh. The performance penalty is pretty drastic though (about 10x slower vs. regular TCP sockets in my experiments)

irmen commented 3 years ago

Also, don't forget that Pyro5 supports SSL by itself as well. (this doesn't help with tunneling, but does give you encryption and authentication: https://pyro5.readthedocs.io/en/latest/security.html?highlight=ssl#secure-communication-via-ssl-tls

coreegor commented 3 years ago

Great, Thx.