How arenaku11/anonssh works
anonssh is a single-process SSH client that routes its SSH connection through embedded Arti Tor. The principal workflow is to parse connection options, configure and bootstrap Tor, create an isolated connection, establish SSH, verify the host key, authenticate, then run a command or interactive terminal and return the remote status. The README also documents optional proxy and bridge transports, exit-country selection, key loading, and temporary or persistent Tor state. The runtime is concentrated in src/main.rs; unsampled implementation details are represented only where the README documents them.
Main entry points: main.rs CLI and orchestration
Components 16
Session setup
- CLI and orchestration
src/main.rs - Exit status
src/main.rs
Tor networking
- Tor configuration
src/main.rs - Arti state
src/main.rs - Arti client
src/main.rs - Upstream proxy
- Bridge transports
- Tor network
SSH session
- SSH server
- SSH profile
src/main.rs - Host verification
src/main.rs - SSH authentication
src/main.rs - Remote command
src/main.rs - Interactive terminal
src/main.rs - Stream forwarding
src/main.rs
Other components
- User
Connections 18
- User → CLI and orchestration: supplies options
README.md - CLI and orchestration → Tor configuration: configures Tor
README.md - Tor configuration → Arti state: selects storage
README.md - CLI and orchestration → Arti client: bootstraps and isolates
README.md - Tor configuration → Arti client: configures client
README.md - Tor configuration → Upstream proxy: configures proxy
README.md - Tor configuration → Bridge transports: configures bridges
README.md - Arti client → Tor network: creates circuit
README.md - CLI and orchestration → Arti client: connects through Tor
src/main.rs - Arti client → SSH server: opens SSH stream
README.md - CLI and orchestration → SSH profile: configures SSH
README.md - CLI and orchestration → Host verification: verifies host key
README.md - CLI and orchestration → SSH authentication: authenticates
README.md - CLI and orchestration → Remote command: opens command
README.md - CLI and orchestration → Interactive terminal: opens terminal
README.md - Remote command → Stream forwarding: forwards streams
README.md - Interactive terminal → Stream forwarding: forwards streams
README.md - CLI and orchestration → Exit status: returns status
README.md