Find SSH servers (without NMAP)
Platform-independently find SSH servers (or other services with open ports) on an IPv4 subnet in pure Python WITHOUT NMAP.
Scan entire IPv4 subnet in less than 1 second using Python standard library asyncio coroutines and a single thread.
The findssh asyncio coroutine TaskGroup uses a single thread and is more than 10x faster than concurrent.futures.ThreadPoolExecutor.
Although speed advantages weren't seen in our testing, findssh works with PyPy as well.
pip install findssh
or from this repo:
git clone https://github.com/scivision/findssh
pip install -e ./findssh
Usage
A canonical way to use FindSSH from other Python scripts is asyncio.
from command line:
python -m findssh
or use project script e.g. from pipx:
findssh
For example, to scan your local subnet for SSH servers:
findssh -p 22 192.168.1.0
-scheck the string from the server to attempt to verify the correct service has been found-ttimeout per server (seconds) useful for high latency connection-bbaseip (check other subnet besides your own)-pnetwork port to scan (default 22)
Benchmark
These tests used 500 ms timeout on WiFi.
Coroutine (single thread, fast, lean, recommended):
%timeit findssh.main()
522 ms ± 1.26 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Thread pool (100 thread max, slow, heavy):
%timeit findssh.threadpool.main()
1.39 s ± 213 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Trying to open too many threads via ThreadPoolExecutor can cause a system error like
OSError: [Errno 24] Too many open files
Thus in practical terms, using coroutines can be significantly faster than threads while using less system resources.
Release files for findssh 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| findssh-2.1.0.tar.gz | 12.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| findssh-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / findssh-2.1.0.tar.gz
| Download URL | findssh-2.1.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5e75968db2198ef6c1347d662e96f386d042b2ee631a9e3bb0525dcc681fdf2
|
|
BLAKE2b-256 checksum How to use checksums |
beee0774bf4b8a2aace4048beea0f193278a7886c1a42aeb09ea71a0ee57a24d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logRelease files / findssh-2.1.0-py3-none-any.whl
| Download URL | findssh-2.1.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e3098f116a77f22f8391adddd8105591d7b5e64aa21a55d1c9c215ffaacc956
|
|
BLAKE2b-256 checksum How to use checksums |
3afa714675472c522011b1a065a2e0d21b280e0293804064ea802e5fab8a5748
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency log