libssh 0.4.7

This is a new libssh release which fixes several bugs and some memory leaks.

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.4.7 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.


  • Fixed a possible memory leak in ssh_get_user_home().
  • Fixed a memory leak in sftp_xstat.
  • Fixed uninitialized fd->revents member.
  • Fixed timout value in ssh_channel_accept().
  • Fixed length checks in ssh_analyze_banner().
  • Fixed a possible data overread and crash bug.
  • Fixed setting max_fd which breaks ssh_select().
  • Fixed some pedantic build warnings.
  • Fixed a memory leak with session->bindaddr.