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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ssh_put_bytes rand_bytes rand_open_urandom sys_openat_rd ↻ sys_read ↻ sys_close ↻ 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

structs

none

consts

none

functions

17func main() -> i64