# net-ssh/net-ssh

Pure Ruby implementation of an SSH (protocol 2) client

Repository: https://github.com/net-ssh/net-ssh
Canonical: https://ross.abutalabs.com/products/net-ssh
Homepage: http://net-ssh.github.io/net-ssh
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-09T03:49:19+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 6284, "days_push": 24, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1022, forks 477 (observed 2026-08-28T04:03:16.004766+00:00)

## What it is
Net::SSH is a pure-Ruby implementation of the SSH2 client protocol, packaged as a Ruby gem. It lets Ruby programs open SSH connections to remote servers, execute commands, run multiple processes in parallel over one connection, and forward local/remote ports.

## Use cases
- run commands on remote servers from ruby
- ssh client library for ruby
- execute remote processes over ssh in parallel
- port forwarding in a ruby script
- automate server tasks via ssh without shelling out to openssh
- connect to servers with ssh2 from pure ruby

## When to choose
- you need programmatic SSH from Ruby without external ssh binaries
- you need multiple channels or port forwarding over a single SSH connection
- you want a pure-Ruby, MIT-licensed SSH2 client with modern algorithms like ed25519 and curve25519

## When to avoid
- you need an SSH server implementation rather than a client
- you just need to run ssh commands from a shell - the openssh CLI is simpler
- you need non-Ruby language support

## Facets
- artifact type: library
- maturity: active
- function: ssh, http-client, security, cryptography
- domain: developer-tools, networking, security
- platform: ruby, cross-platform
- tags: ssh-client, ssh2, pure-ruby, remote-execution, port-forwarding, gem, automation

## Member repositories
- net-ssh/net-ssh (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:16.004766+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:08:45.358077+00:00, confidence not recorded.
  - readme: https://github.com/net-ssh/net-ssh (fetched 2026-08-28T04:03:16.004766+00:00, sha 07de84df3054)
  - homepage: http://net-ssh.github.io/net-ssh (fetched 2026-08-29T13:08:55.280208+00:00, sha 719b2984c9f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
