python and ssh

jepler at unpythonic.net jepler at unpythonic.net
Thu Jul 22 04:12:35 CEST 2004


You would have to ask the authors of ssh that question.

I *suspect* that sshd creates special file descriptors that communicate
with the process started on the remote machine as the user.  Then it
enters a select loop.  Once all the programs with access to that file
descriptor close it (for instance, by exiting), sshd detects this because
the file descriptors are "readable" according to select, but a read gets
0 bytes.  When that happens, sshd closes down communication with ssh,
which exits.

Jeff



More information about the Python-list mailing list