code wiki / (root) / nx_ssh_client.nx

nx_ssh_client.nx

buildroot/runtime/nx_ssh_client.nx

4471 B89 linesdepth 10pulls 22 transitivereach 0 importersview sourcekind tooltopic ssh
docsdependenciesstructsconstsfunctions

about

nx_ssh_client.nx -- sovereign SSH-2 client, end to end: KEX -> key derivation -> chacha20-poly1305@openssh.com transport -> userauth (publickey, Ed25519, our own identity) -> session channel + exec. All bits-up on our own crypto; proven phase by phase against the real NAS OpenSSH server. This is the remote-access substrate for managing the fleet (and the path to deploying the sites TCP_NODELAY fix). Identity: a persistent Ed25519 seed at ~/.nishi/nx_ssh_id (generated once). Its authorized_keys line is printed so it can be authorized on the NAS. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_connect.nx nx_ssh_lib.nx nx_ssh_client.nx

imports: nx_syscalls.nxnx_connect.nxnx_ssh_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ssh_put_bytes sys_openat_wr sys_write sys_close ↻ ed25519_pub_from_priv sys_mmap ↻ ed25519_sha512 sys_mmap ↻ sha512_init sha512_update sha512_blk_set_byte blk_get_i64 blk_set_i64 sha512_compress sys_mmap ↻ blk_get_i64 ↻ sha512_gamma0 rotr64_v shr64_v sha512_gamma1 rotr64_v ↻ shr64_v ↻ sha512_sigma1 rotr64_v ↻ sha512_ch sha512_k sha512_sigma0 rotr64_v ↻ sha512_maj sha512_final sha512_blk_set_byte ↻ sha512_compress ↻

structs

none

consts

none

functions

17func main() -> i64