On Wed, 23 Jan 2008, SZABO Zsolt wrote: >> If you just ssh your server you will see the long delay. That is caused >> by not having DNS working one way or the other. Fix it and all is >> speedy. Use wireshark if you want to watch wots-happenin > > That is the point: with simple ssh there is no delay... > (OK: I login as root at tty1, and then ssh [EMAIL PROTECTED] and it is > fine... now I will try this from inittab) > > And in that case there should be delay when I use password auth... or not?
So, the problem was in sshutils.c because function expect wait 30sec for 'ssword:' prompt and then 120sec for sentinel. Maybe I have not the latest source of ltsp, but the 4-line-patch below helped me. -- Zsolt --- ltsp-5.0.31debian2/client/ldm2/src/sshutils.c 2007-10-04 01:28:05.000000000 +0200 +++ ltsp-5.0.31debian2.new/client/ldm2/src/sshutils.c 2008-01-24 15:25:43.000000000 +0100 @@ -167,6 +167,7 @@ fprintf(ldmlog, "ssh_chat: looking for ssword: from ssh\n"); seen = expect(fd, 30.0, "ssword:", "continue connecting", + SENTINEL, /* for ssh-key auth: no passwd */ NULL); if (seen == 1) { fprintf(ldmlog, "ssh_chat: got it! Sending pw\n"); @@ -178,6 +179,9 @@ set_message(_("This workstation isn't authorized to connect to server")); sleep(5); die("Terminal not authorized, run ltsp-update-sshkeys\n"); + } else if (seen == 3) { + fprintf(ldmlog, "Saw sentinel. Logged in successfully\n"); + return 0; } else { die("Unexpected text from ssh session. Exiting\n"); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net