libssh 0.5.1

This is our first libssh bugfix release of the 0.5 version.

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

You can download libssh 0.5.1 here (gpg asc). For Windows binaries we suggest to use our MSVC build or the MSVC and MinGW binaries from the KDE Windows project here. Packages for Fedora and for openSUSE are available here.


  • Added checks for NULL pointers in string.c.
  • Set the channel max packet size to 32768.
  • Don’t (de)compress empty buffers.
  • Fixed ssh_scp_write so it works when doing recursive copy.
  • Fixed another source of endless wait.
  • Fixed an endless loop in case of a channel_open error.
  • Fixed session timeout handling.
  • Fixed ssh_channel_from_local() loop.
  • Fixed permissions of scp example when we copy a file.
  • Workaround ssh_get_user_home_dir on LDAP users.
  • Added pkg-config support for libssh_threads.
  • Fixed compilation without server and sftp modes.
  • Fix static .lib overwriting on Windows.