The client supports three remote management operations over SSH: install, connect, and shutdown. All use sshpass with password passed via environment variable.
All remote scripts are stored as templates in parasite-core/scripts/ with Unix (bash) and Windows (PowerShell) variants, parameterized at runtime via parasite_core::scripts module with config values.
Installs the parasite-agent binary on a remote server.
Flow:
config.network.network_scan_timeout_ms)scripts/unix/install.sh or scripts/windows/install.ps1)Files: install.rs, app/dispatch/operations.rs, parasite-core/scripts/
Connects to a remote server via SSH, starts the agent if needed, and establishes a TLS connection.
Flow:
scripts/unix/connect.sh or scripts/windows/connect.ps1)Files: connect.rs, app/dispatch/operations.rs, parasite-core/scripts/
Stops the agent on a remote server.
Flow:
scripts/unix/shutdown.sh or scripts/windows/shutdown.ps1)Files: shutdown.rs, app/dispatch/operations.rs, parasite-core/scripts/
Opens a local editor with bidirectional file sync via Mutagen.
Flow:
mutagen CLI is availableCleanup:
Files: editor/sync.rs, editor/control_master.rs, editor/ssh_config.rs, editor/workspace.rs
Launches VS Code with Remote-SSH connected to the agent.
Flow:
code CLI is availablecode --remote ssh-remote+host /pathCleanup:
Files: code.rs, app/dispatch/code.rs
The editor and code features inject temporary SSH config blocks:
# PARASITE-AUTO-<hash>
Host parasite-<hash>
HostName <host>
Port <port>
User <user>
ControlMaster no
ControlPath ~/.parasite/sockets/ctrl-<hash>
StrictHostKeyChecking accept-new
UserKnownHostsFile ~/.parasite/known_hosts
# PARASITE-AUTO-END-<hash>
These blocks are automatically removed during cleanup.