# mscdex/ssh2

SSH2 client and server modules written in pure JavaScript for node.js

Repository: https://github.com/mscdex/ssh2
Canonical: https://ross.abutalabs.com/products/ssh2
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-08-20T21:41:06+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 5143, "days_push": 13, "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 5816, forks 731 (observed 2026-08-28T04:09:30.007073+00:00)

## What it is
SSH2 client and server modules written in pure JavaScript for Node.js. It supports exec, shell, SFTP, port forwarding, and custom HTTP(S) agents without native dependencies.

## Use cases
- run remote commands over ssh from node.js
- transfer files via sftp in javascript
- implement an ssh server in node
- set up ssh port forwarding programmatically
- connect to servers with ssh using nodejs
- create an sftp-only server

## When to choose
- you need SSH or SFTP functionality in a Node.js application without native module dependencies
- you want to implement both SSH client and server behavior in JavaScript
- you need programmatic port forwarding, exec, or shell sessions over SSH

## When to avoid
- you need SSH tooling outside of Node.js
- you only need to run the ssh command-line tool rather than embed SSH in an app

## Facets
- artifact type: library
- maturity: stable
- function: ssh, http-client, networking, file-system
- domain: networking, developer-tools, security, backend
- platform: -
- tags: ssh2, sftp, ssh-client, ssh-server, port-forwarding, pure-javascript, nodejs, javascript

## Member repositories
- mscdex/ssh2 (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:30.007073+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-29T17:52:12.152859+00:00, confidence not recorded.
  - readme: https://github.com/mscdex/ssh2 (fetched 2026-08-28T04:09:30.007073+00:00, sha 8ab5431da25e)
  - registry_npm: https://registry.npmjs.org/ssh2 (fetched 2026-08-29T08:47:53.149495+00:00, sha 6af2ff7f2847)
- Data as of 2026-08-30T08:39:29.467469+00:00.
