skillfed

robotframework-sshlibrary

Robot Framework test library for SSH and SFTP

robotframework-sshlibrary v3.8.0 289.7K downloads/30d#7,998 on PyPI167
Permissive license Apache License 2.0 Active released

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-sshlibrary

uv

uv add robotframework-sshlibrary

poetry

poetry add robotframework-sshlibrary

Installing 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

Development Status :: 5 - Production/StableFramework :: Robot FrameworkFramework :: Robot Framework :: LibraryLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Testing

Tags

robot framework ssh testingsftp file transfer automationremote command execution testingssh test libraryrobot framework remote shellautomated ssh connectionssftp automation framework
robot-frameworkssh-sftptest-automation

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

robotframework-seleniumlibrary

SeleniumLibrary is a Robot Framework library…

permissive · top 5,000 on PyPI

robotremoteserver

Hosts Robot Framework test libraries on…

permissive · top 15,000 on PyPI

robotframework-debuglibrary

Provides an interactive debug shell and library…

permissive · top 15,000 on PyPI

robotframework-selenium2library

A Robot Framework library that wraps Selenium…

permissive · top 15,000 on PyPI

robotframework-requests

RequestsLibrary wraps the Python Requests…

permissive · top 5,000 on PyPI

robotframework

Robot Framework is a generic open-source…

permissive · top 5,000 on PyPI

robotframework-csvlibrary

CSVLibrary is a Robot Framework library that…

permissive · top 15,000 on PyPI

robotframework-dependencylibrary

Declares and enforces dependencies between…

permissive · top 15,000 on PyPI

robotframework-appiumlibrary

AppiumLibrary is a Robot Framework library that…

permissive · top 15,000 on PyPI

robotframework-databaselibrary

A Robot Framework library that adds keywords…

permissive · top 15,000 on PyPI