I am using OpenSSH version13 in a project. However every now and then nchan.c returns an error when we are trying to connect to the product using ssh, we get the following prints in the product and then the connection is closed.
channel 0: rcvd eof
output open -> drain
channel 0: obuf empty
channel 0: close_write
channel 0: output drain -> closed
All of these outputs are from nchan.c
. Just reading the code and trying to see what might have happened seems impossible to me at least! Does anyone have any clue why OpenSSH
might print this error messages and close the connection?
I am hoping that someone is very familiar with the OpenSSH implementation to point me to the right direction!
I am using python
to connect to the product, more specifically the python pexpect module
. I set up a SSH connection, log in with user name, password and then I perform some commands and check output. This works all fine most of the times, but as explained earlier the connections fails every now and then. The output provided above can be seen in the product, and from pexpect
an exception is thrown that it received EOF
(End Of File) from the product (meaning that a connection could not be set up). That is pretty much all the printouts I get. I hope that someone can understand why OpenSSH does not want to setup the connection!