libssh is a mulitplatform C library implementing the SSHv2 and SSHv1 protocol
on client and server side. With libssh, you can remotely execute programs,
transfer files, use a secure and transparent tunnel for your remote applications.
Read our Tutorial
and take a look at our testing infrastructure!
Who uses libssh?
10/12/09 - 11:56pm
This is a new major libssh release which provides new features, a cleaned up API interface and it will be typesafe for the future. We broke the API of serveral functions and added new ones so that we don’t have to break the API in future. You can find more information on this page. This version will be required by KDE SC 4.4 to get kio_sftp working.
This version of libssh has official Windows support. The KDE Windows team ensures that the library is correctly working with MinGW and MSVC. Thanks for this!
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.0 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.
ChangeLog:
- Added scp support.
- Added support for sending signals (RFC 4254, section 6.9).
- Added MSVC support.
- Added support for ~/.ssh/config.
- Added sftp extension support.
- Added X11 forwarding support for client.
- Added forward listening.
- Added support for openssh extensions (statvfs, fstatvfs).
- Added a cleaned up interface for setting options.
- Added a generic way to handle sockets asynchronously.
- Added logging of the sftp flags used to open a file.
- Added full poll() support and poll-emulation for win32.
- Added missing 64bit functions in sftp.
- Added support for ~/ and SSH_DIR/ in filenames instead of %s/.
- Fixed Fix channel_get_exit_status bug.
- Fixed calltrace logging to make it optional.
- Fixed compilation on Solaris.
- Fixed resolving of ip addresses.
- Fixed libssh compilation without server support.
- Fixed possible memory corruptions (ticket #14).

Category: Release | Tags: | 1 Comment »
01/10/09 - 08:07am
The KDE project uses libssh for their kio_sftp implementation now. The new kio slave based on libssh will be released with KDE 4.4.0. As the implementation works fairly well, openSUSE has backported the patches to their KDE 4.3 release which is available in the openSUSE Build Service and will be released with openSUSE 11.2. More features will be added as soon as libssh 0.4 is released. The first release candidates will follow soon.
With the help of the KDE Team we have official support for Windows and MSVC now. The KDE Team checks regularly if the latest development version compiles and works. We will offer this support with the upcoming release of libssh, version 0.4.

Category: Uncategorized | Tags: | 1 Comment »
15/09/09 - 08:21am
This is a security and bugfix release of libssh. We had some crash bugs in the server code and a stack overflow in the agent code. We recommend to update to this version. This is the most stable version of libssh and should be the last of the 0.3 branch.
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.3.4 here along with a NSIS installer for Windows. Packages for openSUSE and Fedora are available here.
ChangeLog:
- Added ssh_basename() and ssh_dirname().
- Added a portable ssh_mkdir function().
- Added a sftp_tell64() function.
- Added missing NULL pointer checks to crypt_set_algorithms_server.
- Fixed ssh_write_knownhost if ~/.ssh doesn’t exist.
- Fixed a possible integer overflow in buffer_get_data().
- Fixed possible security bug in packet_decrypt().
- Fixed a possible stack overflow in agent code.

Category: Uncategorized | Tags: | Be the
First to Comment »
19/08/09 - 08:15am
This is the next bugfix release of libssh. Version 0.3.3 just fixes some bugs found during kio_sftp development which uses libssh now.
We created a tutorial how to get started with libssh. Please join our mailing list or visit our irc channel if you have questions. You can download libssh 0.3.3 here along with a NSIS installer for Windows. Packages for openSUSE and Fedora are available here.
ChangeLog:
- Fixed double free pointer crash in dsa_public_to_string.
- Fixed channel_get_exit_status bug.
- Fixed ssh_finalize which didn’t clear the flag.
- Fixed memory leak introduced by previous bugfix.
- Fixed channel_poll broken when delayed EOF recvd.
- Fixed stupid “can’t parse known host key” bug.
- Fixed possible memory corruption (ticket #14).

Category: Release | Tags: | Be the
First to Comment »
04/08/09 - 04:49pm
This is the next bugfix release of libssh. Version 0.3.2 provides four new functions: ssh_init, sftp_get_openssh_version, sftp_readlink and sftp_symlink.
We created a tutorial how to get started with libssh. Please join our mailing list or visit our irc channel if you have questions. You can download libssh 0.3.2 here along with a NSIS installer for Windows. Packages for openSUSE and Fedora are available here.
The ABI compliance report for the library from version 0.3.1 to 0.3.2 can be found here.
ChangeLog:
- Added ssh_init() function.
- Added sftp_readlink() function.
- Added sftp_symlink() function.
- Fixed ssh_write_knownhost().
- Fixed compilation on Solaris.
- Fixed SSHv1 compilation.

Category: Release | Tags: | Be the
First to Comment »
14/07/09 - 09:03am
Today we present libssh 0.3.1 which is a bugfix release.
Please let us know if there is documentation unclear or missing. Please join
our mailing list or visit our irc channel. You can download libssh 0.3.1 here along with a NSIS installer for Windows. Packages for openSUSE and Fedora are available here.
ChangeLog:
- Added return code SSH_SERVER_FILE_NOT_FOUND.
- Fixed compilation of SSHv1.
- Fixed several memory leaks.
- Fixed possible infinite loops.
- Fixed a possible crash bug.
- Fixed build warnings.
- Fixed cmake on BSD.

Category: Release | Tags: | Be the
First to Comment »
21/05/09 - 02:05pm
It’s done! After several month of hard work we have a new release of libssh.
Version 0.3 has a lot of small and major changes. The API has been improved and
by this we had to break the API and ABI compability.
New functions:
channel_read_buffer, channel_get_exit_status, ssh_auth_list,
ssh_userauth_agent_pubkey, ssh_get_hexa, ssh_version
Changed functions:
channel_read, ssh_get_pubkey_hash, privatekey_free, try_publickey_from_file,
ssh_options_*
Please let us know if there is documentation unclear or missing. Please join
our mailing list or visit our irc channel. You can download libssh 0.3 here along with a NSIS installer for Windows. Packages for openSUSE and Fedora are available here.
ChangeLog:
- Added support for ssh-agent authentication.
- Added POSIX like sftp implementation.
- Added error checking to all functions.
- Added const to arguments where it was needed.
- Added a channel_get_exit_status() function.
- Added a channel_read_buffer() function, channel_read() is now a POSIX like function.
- Added a more generic auth callback function.
- Added printf attribute checking for log and error functions.
- Added runtime function tracer support.
- Added NSIS build support with CPack.
- Added openssh hashed host support.
- Added API documentation for all public functions.
- Added asynchronous SFTP read function.
- Added a ssh_bind_set_fd() function.
- Fixed known_hosts parsing.
- Fixed a lot of build warnings.
- Fixed the Windows build.
- Fixed a lot of memory leaks.
- Fixed a double free corruption in the server support.
- Fixed the “ssh_accept:” bug in server support.
- Fixed important channel bugs.
- Refactored the socket handling.
- Switched to CMake build system.
- Improved performance.

Category: Release | Tags: | 12 Comments »
28/03/09 - 07:43pm
Welcome to libssh.org. We’ve decided to register a domain for libssh and setup a webpage to show that we actively working on libssh!

Category: Uncategorized | Tags: | 7 Comments »