Docs / Getting started / Introduction

Introduction

libsshHS – libssh „HotStone“ – is an independent, open-source SSH-2 library for client and server. It is implemented and tested from the specifications; libssh2 serves only as a reference for the client feature scope.

In development. These docs describe the planned scope of 1.0 (implementation plan 1.0, 30 November 2026). No technical acceptance has taken place yet; effort figures are estimates.

Scope of 1.0

Hybrid and classic key exchange, two AEAD ciphers, Ed25519, OpenSSH key files, certificates, FIDO2 user keys, sessions, SFTP v3, TCP, Unix-socket and agent forwarding, and transport ping – each in client and server role.

# preferred algorithms
kex      mlkem768x25519-sha256, sntrup761x25519-sha512, curve25519-sha256
ciphers  chacha20-poly1305@openssh.com, aes256-gcm@openssh.com
keys     ssh-ed25519, ssh-ed25519-cert-v01@openssh.com, sk-ssh-ed25519@openssh.com

Design principles

The core processes bytes and protocol events. Your application keeps control of network I/O, accounts, key trust, file system, processes and reachable targets.

Transport and rolesSeparate client and server contexts drive the same non-blocking transport through identification, KEXINIT, key exchange, NEWKEYS per direction, user auth, channels, rekey and close. Allowed messages are tabulated per state.
C-ABI and memoryOne header, libsshHS.h, prefix libsshHS_, opaque handles and versioned structures. The owner frees. Borrowed buffers have a clearly bounded lifetime; C++ exceptions or Rust panics never cross the ABI.
ConcurrencyOne caller drives a session; channel events may overlap. Callbacks for signing, host checks and authorization can wait or cancel. Every operation has exactly one final result.
ResourcesSizes are checked before addition, allocation and access, with separate budgets for pre-auth, session, channels, queues and pending SFTP requests. Payload stays internal until the packet is authenticated.
Trust and servicesThe client verifies host and port before user auth. The server separates proof of possession, account admission and service rights – a request without a registered handler is rejected. Secret keys and PINs never reach the logs.

Platforms and language

Windows 11 x64First delivery: DLL, import library, header and required runtime libraries.
Linux x86-64Second test and reference platform: core, roles and POSIX socket adapter.

The working favourite is a Rust core with a C-ABI; a C++20 core remains a concrete alternative. Core language, providers, license and the binding platform matrix are decided at the start of development. C and C++20 stay independent consumers of the installed header either way.

Planned for later

Prioritised and estimated separately after 1.0: password and keyboard-interactive auth, further key types, a non-AEAD profile with hmac-sha2-256-etm@openssh.com, and additional OS and package targets.

Next steps

Architecture →Transport, C-ABI and trust boundaries. Crypto profile →KEX, ciphers, Strict KEX and keys.
Edit this page on GitHub