robotframework-sshlibrary
Robot Framework test library for SSH and SFTP
What it is and what it does
robotframework-sshlibrary is a test library that extends Robot Framework with keywords for SSH and SFTP operations. It lets you write automated tests that connect to remote machines, execute commands, read and write interactive shell sessions, and transfer files over SFTP—all through Robot Framework's keyword-driven syntax. The library handles connection management and provides low-level keywords that are typically wrapped in higher-level test keywords for clarity.
The package depends on paramiko for SSH protocol support and scp for file transfers. Installation via pip automatically pulls in these dependencies along with cryptographic libraries. On containerized systems, you must pre-install system build tools. The library supports Python 2.7 and 3.4 or newer, and also runs on Jython 2.7 (with additional JAR setup).
Use it for:
- Automated testing of remote server configurations and deployments by executing shell commands and verifying output
- Transferring test data files to remote machines or retrieving results over SFTP as part of test setup and teardown
- Writing integration tests that interact with remote systems via SSH, such as verifying service status or log contents
- Automating multi-step SSH sessions with interactive shell commands for complex remote operations
- Building end-to-end test suites that validate infrastructure or application behavior across distributed systems
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Robot Framework test library for executing commands, transferring files, and managing interactive shells over SSH and SFTP connections.
Yes, if you are already using Robot Framework for test automation and need SSH/SFTP capabilities. The library is stable (Production/Stable status), permissively licensed, and has no known vulnerabilities. However, the last release was 2021-11-18—check whether your use case aligns with the library's current state despite active repository status. Installation requires system-level build dependencies in containerized environments.
Install
robotframework-sshlibrary on PyPI
pip
pip install robotframework-sshlibraryuv
uv add robotframework-sshlibrarypoetry
poetry add robotframework-sshlibraryInstalling robotframework-sshlibrary
Before you install
Installation requires system-level dependencies (gcc, make, openssl-dev, musl-dev, libffi-dev on Alpine/containers) and pulls in paramiko and scp as runtime dependencies. Last release was 2021-11-18, though the repository remains active with recent commits as of 2026-07-09.
License in practice
Licensed under Apache License 2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install robotframework-sshlibrary
# In Robot Framework test file:
*** Settings ***
Library SSHLibrary
*** Test Cases ***
Execute Remote Command
Open Connection hostname
Login username password
${output}= Execute Command echo test
Close All Connections
Requires system libraries (gcc, make, openssl-dev, musl-dev, libffi-dev) when installing in containers like Alpine Linux. On Windows with Python < 3.0, requires win_inet_pton >= 1.1.0. For SSH tunnels, requires robotbackgroundlogger > 1.2.
Verify before relying
- Whether paramiko >= 1.15.3 and scp >= 0.13.0 are automatically installed and pinned by pip install
- Current compatibility with Python versions beyond 3.8 (classifiers list only up to 3.8)
- Whether the gap between last release (2021-11-18) and recent commits (2026-07-09) indicates active maintenance or stalled development
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1,730 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 289,676/month — #7,998 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: robotframework-sshlibrary-3.8.0.tar.gz
Keywords: robotframework, testing, testautomation, ssh, sftp
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
robotframework-seleniumlibrarySeleniumLibrary is a Robot Framework library…
permissive · top 5,000 on PyPI
robotremoteserverHosts Robot Framework test libraries on…
permissive · top 15,000 on PyPI
robotframework-debuglibraryProvides an interactive debug shell and library…
permissive · top 15,000 on PyPI
robotframework-selenium2libraryA Robot Framework library that wraps Selenium…
permissive · top 15,000 on PyPI
robotframework-requestsRequestsLibrary wraps the Python Requests…
permissive · top 5,000 on PyPI
robotframeworkRobot Framework is a generic open-source…
permissive · top 5,000 on PyPI
robotframework-csvlibraryCSVLibrary is a Robot Framework library that…
permissive · top 15,000 on PyPI
robotframework-dependencylibraryDeclares and enforces dependencies between…
permissive · top 15,000 on PyPI
robotframework-appiumlibraryAppiumLibrary is a Robot Framework library that…
permissive · top 15,000 on PyPI
robotframework-databaselibraryA Robot Framework library that adds keywords…
permissive · top 15,000 on PyPI