pare-remote
v0.24.2Pare Remote — Structured SSH and rsync operations (ssh-run, ssh-test, rsync) as typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ssh-run SSH Run Command
Executes a command on a remote host via SSH. WARNING: This runs commands on a remote machine. Ensure the host and command are correct before executing. Returns structured output with stdout, stderr, exit code, and duration.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command to execute on the remote host |
host * | string | Remote host to connect to (hostname or IP address) |
compact | boolean | Prefer compact output |
identityFile | string | Path to SSH private key file |
options | array | Additional SSH options as -o key=value pairs (e.g. StrictHostKeyChecking=no) |
port | number | SSH port number (default: 22) |
user | string | SSH username (if not specified, uses SSH config default) |
ssh-test SSH Test Connection
Tests SSH connectivity to a remote host using `ssh -T`. Returns whether the host is reachable and any banner message.
| Parameter | Type | Description |
|---|---|---|
host * | string | Remote host to test connectivity to (hostname or IP address) |
compact | boolean | Prefer compact output |
connectTimeout | number | Connection timeout in seconds (default: 10) |
identityFile | string | Path to SSH private key file |
port | number | SSH port number (default: 22) |
user | string | SSH username (if not specified, uses SSH config default) |
ssh-keyscan SSH Keyscan
Retrieves public host keys from a remote SSH server using `ssh-keyscan`. Useful for populating known_hosts or verifying host key fingerprints.
| Parameter | Type | Description |
|---|---|---|
host * | string | Remote host to scan for public keys (hostname or IP address) |
compact | boolean | Prefer compact output |
keyType | string | Specific key type to request (default: all types) |
port | number | SSH port number (default: 22) |
timeout | number | Timeout in seconds for the keyscan operation (default: 5) |
rsync Rsync File Sync
Syncs files between local and remote locations using rsync. WARNING: Defaults to dry-run mode for safety — set dryRun=false to actually transfer files. Returns structured transfer statistics.
| Parameter | Type | Description |
|---|---|---|
destination * | string | Destination path (local path or remote user@host:path) |
source * | string | Source path (local path or remote user@host:path). Use trailing / to sync directory contents. |
archive | boolean | Archive mode: preserves permissions, timestamps, symlinks (rsync -a) |
compact | boolean | Prefer compact output |
compress | boolean | Compress data during transfer (rsync -z) |
delete | boolean | Delete files in destination that don't exist in source. Use with caution! |
dryRun | boolean | Preview what would be transferred without making changes (default: true for safety). Set to false to actually transfer. |
exclude | array | Patterns to exclude from sync (e.g. node_modules, .git) |
identityFile | string | SSH private key file for remote transfers |
include | array | Patterns to include in sync |
path | string | Project root path |
sshPort | number | SSH port for remote transfers |
verbose | boolean | Verbose output showing transferred files (rsync -v) |