Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

find open servers on your IPv4 subnet, e.g. SSH

Project description


Build Status Coverage percent Build status Language grade: Python PyPi versions Maintainability PyPi Download stats

Find SSH servers (without NMAP)

Platform-independently find SSH servers (or other services with open ports) on an IPv4 subnet, WITHOUT NMAP. Scan entire IPv4 subnet in less than 1 second using Python standard library asyncio coroutines and a single thread.

The asyncio coroutine method uses ONE thread and is significantly faster than concurrent.futures.ThreadPoolExecutor, even (perhaps especially) with hundreds of threads in the ThreadPool.

Although speed advantages weren't seen in our testing, findssh works with PyPy as well.

Matlab findssh.m works similarly.


Just run directly. To allow use from other programs, you can install by:

pip install findssh

or from this repo:

pip install -e .


from command line:


Command line options

  • -s check the string from the server to attempt to verify the correct service has been found
  • -t timeout per server (seconds) useful for high latency connection
  • -b baseip (check other subnet besides your own)
  • -p network port to scan (default 22)


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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for findssh, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size findssh-1.3.0.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page