Setup Ipython notebook over ssh tunnel

Problem:

Ipython is running in remote machine which has no graphical GUI access. We want to use Ipython notebook

Solution :

Use SSH Tunnel to make
We can use following command to start ipython if we want to use tunnel

ipython notebook --no-browser --port=7500

Now configure the local system to use proxy SSH tunnel

If you are using Windows as local machine then

You can configure the Putty to use SSH Tunnel

Go to Tunnel
Enter Source port say 9999
Select Destination Dynamic


Click Add
It would look like as shown below



Open your Putty session and Login with your username and password to the remote server with this newly created tunnel settings.

In Browser use ( Use firefox )

Proxy as
127.0.0.1:9999
SOCKS5
This should allow to access the Ipython as

http://127.0.0.1:7500

Or you can use command line option also


Few links




No comments:

Post a Comment

Please share your views and comments below.

Thank You.