libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel, manage public keys and much more ...
For more information about libssh visit https://www.libssh.org/
Examples at https://github.com/dariolah/libssh-nim-examples