tensorchord / envd

🏕️ Reproducible development environment
https://envd.tensorchord.ai/
Apache License 2.0
2.04k stars 160 forks source link

feat: Port forwarding in envd-server runner #958

Closed gaocegege closed 2 years ago

gaocegege commented 2 years ago

Description

There are several ports that will be used in envd:

sshd port is forwarded by the ssh proxy server. Other ports may need ssh tunneling.


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

gaocegege commented 2 years ago

We need a proposal to design how to use containerssh to implement ssh tunneling.

gaocegege commented 2 years ago

Ref https://www.rfc-editor.org/rfc/rfc4254

gaocegege commented 2 years ago

The local forwarding works well with the change https://github.com/tensorchord/envd-server/pull/15

We need to keep an ssh connection for the forwarding. I propose to reuse the remote shell instead of making a new connection in envd.