1 | initial version |
If you want to use the Sage notebook on a remote machine using an ssh tunnel, you need to login to the machine and run sage (like you did). Then you need to setup a tunnel to forward traffic from your local machine's port 8000 to the remote machine's port 8000. See these instructions.
The following commands should do the job:
$ local> ssh user@remote.net
$ remote> cd <SAGE_ROOT>; echo "notebook(open_viewer=False)" | ./sage
... create admin password if needed ...
In another terminal, run:
ssh user@remote.net -L 8000:remote.net:8000
This sets up a tunnel to redirect port 8000 on your local machine to port 8000 on remote.net
. Now, load up your local browser and surf to http://localhost:8000
and you should be up and running.