I need to use some kind of ssh library that has server side implementation for my embedded system

The solution should comply to the following requirements:

  • The ability to have some callback mechanism for things like memory management

  • The ability to compile on multiple architectures

What library do you recommend?

I prefer the library to be open source

So far I found libssh2 that implements the callback mechanism but only implement the client side while libssh implements the client side but doesn't implement the memory callback mechanism


AFAIK, libssh is your only chance for C. The other libssh2 does not support server side. There is simple comparison of these two.

I am not sure what you mean by "callback mechanism for things like memory management" and what exactly you want to do with the server side ssh library, but for the reference, there is the comparison of all the SSH implementations (not only libraries). You might be able to hook your stuff event to real ssh server from Dropbear, OpenSSH or Apache SSHD.

  • by callback for memory management i mean that i can use something other than malloc to allocate memory,some embedded systems doesn't use the standard memory management functions
    – omer12433
    Aug 3 '16 at 20:27
  • AFAIK, Dropbear is made for embedded systems, so it should certainly support something like this.
    – Jakuje
    Aug 3 '16 at 20:29

In 2021, there are more C libraries that allow to implement an embedded SSH server. The three libraries listed below are open source and designed to be portable:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.