sshfs
SSH Filesystem -- Async SSH/SFTP backend for fsspec
Decision gist · record as of 2026-08-14
Yes. Active maintenance, permissive license, low install friction, no known vulnerabilities, and a clean async design make this a solid choice for Python-based SFTP access. Use it if you need to treat remote SSH filesystems as fsspec-compatible storage or prefer async I/O over blocking SFTP libraries.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; remote SSH server must be accessible and credentials (password or client_keys) must be provided.
- Low friction install with only two runtime dependencies (fsspec and asyncssh).
- Active maintenance with a release 7 days ago and last commit on 2026-08-07.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows unrestricted use, modification, and distribution in both open-source and proprietary projects.
last release 2026-08-07 (7 days) · last repo commit 2026-08-07 · 89 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,026,665 downloads/mo, #2,783 on PyPI
Alternatives
Verify before relying
pip install sshfs
from sshfs import SSHFileSystem
fs = SSHFileSystem('example.com', username='user', password='pass')
with fs.open('/path/to/file', 'r') as f:
content = f.read()- Performance characteristics compared to other SFTP libraries beyond the description's claim of being 'quite fast'.
- Whether server-side copy via SSH command execution is available for all SSH server types or only specific implementations.
What it is and what it does
sshfs is an fsspec filesystem backend that lets you interact with remote files over SFTP/SSH as if they were local files. It wraps asyncssh to provide async, non-blocking I/O and integrates with fsspec's standardized filesystem API, so you can use familiar operations like open(), read(), write(), mkdir(), and find() against remote servers.
You can authenticate with passwords or private keys, and the package handles channel management internally. It supports both the high-level fsspec.open() interface for simple file access and the SSHFileSystem class directly for more complex operations. The implementation covers the full fsspec protocol and adds SSH-specific features like server-side copy through command execution.
Use it for
- Transfer files between local and remote servers within Python scripts without spawning subprocess calls to scp or sftp.
- Stream large remote files for processing without downloading them entirely to disk first.
- Automate remote file management tasks (create directories, list contents, delete files) from Python code.
- Integrate remote file access into data pipelines that already use fsspec for other storage backends.
- Build tools that need to work with files on multiple SSH servers with a unified, async-friendly interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Active maintenance, permissive license, low install friction, no known vulnerabilities, and a clean async design make this a solid choice for Python-based SFTP access. Use it if you need to treat remote SSH filesystems as fsspec-compatible storage or prefer async I/O over blocking SFTP libraries.
Install
sshfs on PyPI
Before you install
Low friction install with only two runtime dependencies (fsspec and asyncssh). Active maintenance with a release 7 days ago and last commit on 2026-08-07.
Requires Python 3.9 or later; remote SSH server must be accessible and credentials (password or client_keys) must be provided.
License in practice
Apache-2.0 permissive license allows unrestricted use, modification, and distribution in both open-source and proprietary projects.
Quickstart
pip install sshfs
from sshfs import SSHFileSystem
fs = SSHFileSystem('example.com', username='user', password='pass')
with fs.open('/path/to/file', 'r') as f:
content = f.read()
Verify before relying
- Performance characteristics compared to other SFTP libraries beyond the description's claim of being 'quite fast'.
- Whether server-side copy via SSH command execution is available for all SSH server types or only specific implementations.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesfsspecasyncssh |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,026,665 / month, #2,783 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9 |
Evidence: sshfs-2026.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sftp filesystem interface”
- sshfsProvides an fsspec-compatible filesystem interface for SFTP/SSH…
- fs.sshfsfs.sshfs provides a PyFilesystem2 interface to remote SSH/SFTP…
- fusepyfusepy provides Python bindings to FUSE (Filesystem in Userspace),…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also asyncssh · fs.sshfs · ocifs · scmrepo · gdrive-fsspec · webdav4 · fsspec · dvc-ssh · sftpretty · ossfs