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

Port Forwarding #102

Open
b3c3ll opened this issue May 11, 2023 · 1 comment
Open

Port Forwarding #102

b3c3ll opened this issue May 11, 2023 · 1 comment

Comments

@b3c3ll
Copy link

b3c3ll commented May 11, 2023

Hi @nviennot @juniorz @oscarh @ebardie @gee-forr @starlilyth @varac

I have used tmate as terminal sharing, and that is really great!

Here is my scenario:
I have installed tmate server on with a public IP server (VPS) using:
docker run -d --name="tmate-server" --cap-add SYS_ADMIN -v $(pwd)/keys:/keys -e SSH_KEYS_PATH=/keys -p 2223:2223 -e SSH_PORT_LISTEN=2223 -e SSH_HOSTNAME=persl.ddns.net -e USE_PROXY_PROTOCOL=0 tmate/tmate-ssh-server:prod
and the Client 1 [Ubuntu PC with GPU] connects to the tmate server to get an ssh key address to share with the client 2 [ windows PC]
Note: Client 1 [ubuntu] does not have public Ip address to connect Directly! (modem is not accessible)

                                |----------------------| 
                                |      Tmate Server    |
                                |----------------------|
                                          | |
                           ---------                    -------------
                 | |                                                  | |

    |----------------------|                                 |---------------------|
    |    MY ubuntu PC      |                                 |      Windows PC     |
    |     (has GPU)        |                                 |    (client of ssh)  |
    |----------------------|                                 |---------------------|
    

Its all good till now. But the Ubuntu PC is used for deep learning tasks and i want to share the notebook with the Windows PC!

in the ubuntu PC, Jupyter Notebook is installed which exposes port 8888 on all the Ip addressese (0.0.0.0) to be able to open a web interface ( like webpage ) on port 8888!

How can i share this notebook with the windows PC to be able to use the available GPU of Ubuntu PC?
I have tested

ssh -p2223 -L 8888:localhost:8888 [email protected]

and Also tested with -D
but none of them worked for me!

Is there any configurations that i'm missing? in ssh or tmate?

I would appritiate any kind of help in this regards/:

Thanks
best regards

@b3c3ll
Copy link
Author

b3c3ll commented May 11, 2023

In case this is not possible with tmate, Please provide and alternative for the scenario

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