An SSH console for microcontrollers. ssh admin@<board> and you're on the device: a config shell, a status screen, or a full ANSI-art BBS.
SSH 2.0 Engineered for Bounded Silicon
Most embedded devices rely on unencrypted Telnet or bloated multi-megabyte ports. glossh pairs littlessh (a minimal callback-driven SSH 2.0 server built on PSA Crypto with strict zero-heap execution) and glotui (a differential 16-color ANSI-art terminal UI that sends only changed cell buffers) on hardware as lean as an ESP32-S3 with W5500 Ethernet.
littlessh enforces strict cryptographic and memory guarantees designed specifically for microcontroller safety:
Figure 1: Littlessh state machine and memory boundaries ensuring single-slot zero-heap execution.
02 · glotui: differential ansi-art engine
glotui renders CP437 glyphs and colors into a two-dimensional virtual cell buffer. Rather than blasting full-screen ANSI redraws across the network, gt_flush() diffs the current buffer against the previous frame and streams only changed cells.
A live status screen updating a clock, modem LEDs, and an animated radio tower consumes just 1–4 KB/s over the encrypted wire:
Figure 2: Differential cell-buffer streaming transmitting micro-deltas over encrypted SSH.
03 · interactive glossh bbs simulator
Experience the live ANSI-art terminal UI running directly inside the browser:
32-byte P-256 scalar generated once and pinned in NVS. Fingerprint printed at boot.
Symmetric Cipher
aes256-gcm@openssh.com
Authenticated encryption with AEAD integrity verification.
User Auth
Password & Publickey
60-second authentication timeout prevents unauthenticated clients from hoarding slot.
Heap Allocation
Zero Heap after Start
All channel windows, packet buffers, and session states allocated prior to accept().
05 · quickstart guide
Desktop Host Test (Linux / macOS)
sudo apt install build-essential libmbedtls-dev openssh-client
cd test/host && make bbs_host
./bbs_host 2323
ssh -p 2323 caller@127.0.0.1 # password: bbs
Flash to LilyGO T-ETH-ELITE S3 (ESP32-S3 + Ethernet)
cd examples/esp32_bbs
idf.py set-target esp32s3
idf.py build flash monitor
# Then from your workstation:
ssh -t admin@<board-ip> # password: changeme
Frequently asked questions
What is glossh?
An SSH 2.0 server for ESP-IDF microcontrollers. Run ssh admin@<board> and you get a device console: a config shell, a status screen, or an ANSI-art BBS.
Does it need OpenSSH or Dropbear on the device?
No. glossh is a small server written for microcontrollers, so it doesn't need the footprint of OpenSSH or Dropbear. It is built on PSA Crypto.
Which SSH algorithms does it use?
Key exchange is curve25519-sha256 with strict KEX. The host key is ecdsa-sha2-nistp256. The cipher is aes256-gcm@openssh.com. Users can log in with a password, a public key, or both.
Does it support SFTP or port forwarding?
No. It is meant for device consoles, not bulk file transfer, so there is no SFTP, port forwarding or agent forwarding.
How many clients can connect at once?
One. An unauthenticated client can't hold the slot, because the login has to finish within auth_timeout_ms, 60 seconds by default.
Has it been tested on hardware?
Not yet. The README says it is host-tested against OpenSSH 10 in CI, and the examples build with ESP-IDF 6.0.2. Hardware testing is still to come.
Which hardware does the example run on?
The config shell and GLOSSH BBS examples target the LilyGO T-ETH-ELITE S3, an ESP32-S3 with W5500 Ethernet. The BBS can also run on a Linux desktop for testing.