-
Notifications
You must be signed in to change notification settings - Fork 0
Paramiko
title: paramiko type: framework created: 2026-05-26 last_updated: 2026-05-26 related: ["radar/techniques/ParamikoInteractiveSSH", "radar/tools/XPipe", "radar/techniques/WireGuardTunnel"] sources: ["https://github.com/paramiko/paramiko"] radar_quadrant: Languages & Frameworks radar_ring: Assess radar_position: inner
The leading native Python SSHv2 library, providing client and server implementations for programmatic SSH connections, remote command execution, SFTP file transfer, and port forwarding — without shelling out to the ssh binary.
paramiko implements SSHv2 entirely in Python. It handles key exchange, authentication (password, public key, certificate), channel multiplexing, and the SSH wire protocol. From application code, this surfaces as:
- exec_command — run a non-interactive command on a remote host and capture stdout/stderr
- invoke_shell — open an interactive shell session for automating interactive programs (see radar/techniques/ParamikoInteractiveSSH)
- SFTPClient — upload, download, list, and manage files on remote hosts
- Transport.open_channel — set up SSH port forwards and tunnels programmatically
paramiko is the right choice when you need SSH functionality embedded in a Python application or script and cannot or do not want to shell out to the ssh binary. Common cases:
- Automation scripts that SSH into infrastructure and capture structured output
- Data pipelines that pull files from remote hosts via SFTP
- Tools that manage multiple SSH connections concurrently
- Situations where the
sshbinary is unavailable (containerised environments, restricted paths)
For most server configuration tasks, Ansible (which uses paramiko internally) provides a better abstraction. paramiko is the layer below: appropriate when you need direct control over the SSH connection or when Ansible's overhead is not warranted.
paramiko sits in the Assess ring of the Languages & Frameworks quadrant, at inner position. First studied via the GitHub repository (2024-08-07). The library was absorbed to anchor the radar/techniques/ParamikoInteractiveSSH technique article already in this radar. Inner position reflects pip installation, no external SSH binary dependency, and direct applicability to any Python project requiring programmatic remote access. Remaining gate before Trial is confirmed use as the SSH layer in an active automation or data pipeline project.