# ssh-tester

> A library for repeatedly attempting to connect to an SSH server until a specified timeout occurs

Latest version **1.0.0** (published 2018-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install ssh-tester
pnpm add ssh-tester
yarn add ssh-tester
bun add ssh-tester
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-21 |
| First published | 2018-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Ambler |
| Maintainers | timambler |

## Links

- npm: https://www.npmjs.com/package/ssh-tester
- npm.io page: https://npm.io/package/ssh-tester

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^3.1.0
- [node-ssh](https://npm.io/package/node-ssh.md) ^5.1.2

## Recent versions

- 1.0.0 (latest) — 2018-06-21

## README

# ssh-tester

---

This module will attempt to connect to a specified SSH host. A promise is returned, which is resolved upon successful connection. If unable to connect, the connection attempt is repeatedly retried until the specified timeout interval has been exceeded.

```
const sshTester = require('ssh-tester');

return sshTester({
	'host': 'devhost.com',
	'username': 'ubuntu',
	'port': 22,
	'private_key': fs.readFileSync('/Users/tkambler/.ssh/id_rsa', 'utf8'),
	'password': '...',
	'timeout': 60000 // For how long should connection attempts be attempted (ms)?
})
	.then(() => {
		console.log('Connected!');
	});
```

---
_Source: https://npm.io/package/ssh-tester · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
