python and ssh

jepler at unpythonic.net jepler at unpythonic.net
Wed Jul 21 22:12:35 EDT 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