OK, some progress. I ssh'd from the server to itself to register keys,
now I don't get the errors. The calculation wasn't returning, so I
looked at the process list and saw an apparent attempt to ssh to the
server, using username nb5.  Do I need to set up users nb1-5 ? Is
there some standard place to put the home dirs other than home if I do
that? How do passwords work?

-- David

On Oct 27, 8:21 pm, David <david.r.guich...@gmail.com> wrote:
> I'm using Dan's script:
>
> # A script for starting the Sage notebook with the options you like.
> # Change the options to your needs, save this script and do "sage
> # start_notebook.sage" to start the notebook with these options.
> #
> # by Dan Drake; seehttp://wiki.sagemath.org/DanDrake/JustEnoughSageServer
>
> # we'll stuff everything into a dictionary and pass that on to notebook
> ()
> nbopts = {}
>
> # listen on all addresses
> nbopts['address'] = ''
> nbopts['port'] = 8000
>
> # use https, not http
> nbopts['secure'] = True
>
> # don't open a viewer, I'll do that myself thankyouverymuch
> nbopts['open_viewer'] = False
>
> # use this directory for nb files; must be writable by the nb? users
> nbopts['directory'] = '/usr/local/sageadm/nbfiles'
>
> # at most 500MB memory, 100MB files, 100 processes for nb? users
> nbopts['ulimit'] = '-v 500000 -f 100000 -u 100'
>
> # time out idle sessions after two hours
> nbopts['timeout'] = 7200
>
> # yes, can create new accounts
> nbopts['accounts'] = True
>
> # use these minions to do our bidding
> nbopts['server_pool'] = ['n...@localhost' % n for n in [1..5]]
>
> # Go!
> notebook(**nbopts)
>
> ----------------
>
> Where do ssh keys come into the picture? Is the sage server checking
> ssh keys somehow? Would it screw things up if I'm connecting through a
> proxy server? I've been playing with this from off-campus, so I have
> to go through a proxy to get to the machine sage is on. I've tried
> both via squid and a direct ssh connection with port forwarding.
>
> Thanks,
> David
> Whitman College
>
> On Oct 27, 7:48 pm, William Stein <wst...@gmail.com> wrote:
>
> > On Tue, Oct 27, 2009 at 7:20 PM, Dan Drake <dr...@kaist.edu> wrote:
> > > Hello all,
>
> > > David is trying to set up a Sage server, and is experiencing the
> > > problems below. This looks like something in the notebook's new security
> > > features, but I don't know anything about this. Does anyone know what's
> > > going on?
>
> > 1. Note the error: "Host key verification failed."  That suggests ssh
> > keys isn't properly setup.
>
> > 2. It would helpful to post the notebook(...) command he is running.
>
> > > ----- Forwarded message from David <david.r.guich...@gmail.com> -----
> > >> Date: Tue, 27 Oct 2009 19:11:38 -0700 (PDT)
> > >> From: David <david.r.guich...@gmail.com>
> > >> To: Dan Drake <dr...@kaist.edu>
> > >> Subject: Re: sage server
>
> > >> Ah, oops, spoke too soon. I can connect to the sage server, but I
> > >> can't do anything. I get the notebook interface but nothing gets
> > >> computed. On the console running the server I get messages like this:
>
> > >> 2009-10-27 19:09:11-0700 [HTTPChannel,1,10.33.1.165] got EOF
> > >> subprocess must have crashed...
> > >> 2009-10-27 19:09:11-0700 [HTTPChannel,1,10.33.1.165]
> > >> 2009-10-27 19:09:11-0700 [HTTPChannel,1,10.33.1.165] import os;os.chdir
> > >> ("/tmp/tmpCMAJDZ");
> > >> 2009-10-27 19:09:11-0700 [HTTPChannel,1,10.33.1.165] execfile
> > >> ("_sage_input_1.py")Host key verification failed.
> > >> 2009-10-27 19:09:11-0700 [HTTPChannel,1,10.33.1.165]
> > >> 2009-10-27 19:09:11-0700 [HTTPChannel,1,10.33.1.165]
>
> > >> Ideas?
>
> > >> -- David
> > > ----- End forwarded message -----
>
> > > Dan
>
> > > --
> > > ---  Dan Drake
> > > -----  http://mathsci.kaist.ac.kr/~drake
> > > -------
>
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.9 (GNU/Linux)
>
> > > iEYEARECAAYFAkrnqnUACgkQr4V8SljC5LquYwCffJO5Z7SBw7E+5hxJ8YJy/kC5
> > > SD4AoKvygfDsbbhYZioZKAsxoF5z85uS
> > > =2PAR
> > > -----END PGP SIGNATURE-----
>
> > --
> > William Stein
> > Associate Professor of Mathematics
> > University of Washingtonhttp://wstein.org
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to