Re: properly closing ldm logins

Vagrant Cascadian <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Thu, Aug 21, 2008 at 09:14:57AM +0200, GARETTE Emmanuel wrote:
> Le mercredi 20 août 2008 à 10:23 -0700, Vagrant Cascadian a écrit :
> 
> > there was a patch to use "ssh -O exit", but this doesn't work with older
> > openssh-server versions (seems to work on debian lenny with 5.1, but not
> > 4.7- would be good to get feedback from other distros).
> 
> I just test it in etch and it's seems working great (with OpenSSH_4.3p2
> Debian-9etch2, OpenSSL 0.9.8c 05 Sep 2006):
> 
> Start master connexion:
> # /usr/bin/ssh -X -t -M -S toto localhost
> 
> Start a slave connexion:
> # ssh -X -t -S toto localhost
> 
> Stop connexions:
> # ssh -S toto localhost -O exit
> 
> All connexions are closed properly.
> 
> I don't have ltsp on this machin, but I don't understand why it didn't
> works for you.

that part works fine, yes.

what doesn't work is that when ldm makes the ssh connection starting the
Xsession script, on older versions of openssh-server, that doesn't
disconnect, so you never get a chance to run "ssh -O exit".

unless you background the ssh connection(or run multiple threads or some
such), in which case, it becomes difficult to figure out when to
actually call "ssh -O exit".

i have a feeling i'm going to explain this at least 100 more times...

live well,
  vagrant

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.