ssh_channel_is_closed() returns 0 when the channel is closed on Linux
On debian 10, functions capable of indicating a disconnected connection always return the same value. When the connection is broken, the ssh_channel_is_closed() function returns 0, ssh_channel_is_open() returns a non-zero value.
libssh 0.9.6 debian 10
Edited by Vladimir Vladimirov