Hi,

If you want to run the Sage notebook on a remote machine where Sage is
installed, and you can only ssh to the remote machine, but not open
outside ports, do:

ssh -L 5900:localhost:8000 remote.computer.edu /path/to/sage -notebook port=8000

Then open

   http://localhost:5900

on your computer.

The above should be very secure even with secure=False, since it all
goes through ssh.  Only you can connect to the server.  An advantage
is that it works even if there is a firewall on remote.computer.edu
that prevents opening outgoing connections.  E.g., I used this today
to run a notebook server on a computer at UGA.

You'll need to login, so be sure to set a password on the remote
server, e.g., by typing

   sage: notebook(reset=True).

 -- William

P.S. Nils Bruin originally contributed a version of this very tip on a
sage list a few years ago.

-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to