Small self-contained SSH daemon

Hello, in this gist, you can find a minimal SSH server: gosshd is a minimal pure-Go SSH server for Haiku · GitHub.

At the end of the gist are binaries for 386, amd64, and arm64 that you can download. It accepts password and public-key auth, and runs ssh host "cmd" (exec) or ssh host (shell) through /bin/bash. It follows Haiku conventions for host-key and authorized_keys locations. If the host key already exists, it can reuse it; otherwise, it will generate one. It also supports the legacy SCP protocol (clients must use scp -O).

It can be useful for arm64 development, where the QEMU minimal image does not contain an SSH daemon.