libssh 0.4.5 4

This is a new libssh release which fixes the poll(2)-emulation on Windows and adds an option to bind the client to an ip address.

If you are new to libssh read the API reference how to get started. Please join our mailing list or visit our irc channel if you have questions.

You can download libssh 0.4.5 here. For Windows binaries we suggest to use the MSVC and MinGW binaries from the KDE Windows project here. Packages for Fedora are available here and for openSUSE here.


  • Added option to bind a client to an ip address.
  • Fixed the ssh socket polling function.
  • Fixed Windows related bugs in bsd_poll().
  • Fixed serveral build warnings.

Flattr this!

Leave a comment

Your email address will not be published. Required fields are marked *


4 thoughts on “libssh 0.4.5

  • chengjinsong

    While using the libssh on the windows2008 server,my code will ended at the function channelpoll(),how it happened?
    Whether the lib supports windows2008 or not ?

  • xiegang

    Thanks for all your help before, But I also need your help with some problems:
    1.I need a function that can tell me when the channel has data. I know channel_read can block until the data comes, But I don’t want my program always stop at this function when no data comes, I need a timeout function, just like the select() function on socket. Can you give me some suggestion.
    2.I don’t want to use wsa_poll function because of some problems on windows server 2008. if I want to use bsd_poll when the ws2_32.dll exist on my OS, how to do?
    Look forward to your reply, Thanks.

  • gladiac Post author


    to ask these question, you should subscribe to the mailing list. There are developers and users of libssh subscribed and more people can help you to solve your problems.

    1. Take a look at channel_poll().

    2. bsd_poll() is a emulation of a poll function. It uses select() which is limited to 64 file descriptors on Windows and it is slow. You really want to use WSAPoll(). If it doesn’t work, we need to fix it. For this we need detailed information. The best is if you could provide code we can execute and debug.