Run ipython laptop remotely via ssh tunneling

I am wondering if I can use the ipython laptop remotely using ssh twice. Scenario: Machine B is the machine on which I want to run ipython notebook. However, I am allowed to first access machine B through another server (machine A). There are tutorials about using an ipython laptop remotely, but none of them mention the situation I encountered.

Thanks in advance!

+4
source share
1 answer

Assuming you mean ssh tunneling and the ipython laptop is running on port 1234 on machine B:

A B , A SSH:

ssh -L 9999:machineB.com:1234 -N machineA.com

ssh machineA.com (-N) A 9999 ssh B 1234

, A B ssh, . - machineA, machineA machineB. :

ssh -L 9999:localhost:8888 machineA.com ssh -L 8888:localhost:1234 -N machineB.com

ssh machineA.com A - 9999 ssh 8888. "ssh -L 8888: localhost: 1234 -N machineB. ". machine888888 machine 1234 ( iPython).

, , - 9999. ssh machineA, localhost: 8888, ssh machineB, localhost: 1234.

, machineA machineB ( / ), .

, ssh tunneling https://superuser.com/questions/96489/ssh-tunnel-via-multiple-hops

+6

Source: https://habr.com/ru/post/1532561/


All Articles