Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/node-ssh-version
Determine the remote version of ssh running on a host
https://github.com/bahamas10/node-ssh-version
Last synced: about 2 months ago
JSON representation
Determine the remote version of ssh running on a host
- Host: GitHub
- URL: https://github.com/bahamas10/node-ssh-version
- Owner: bahamas10
- Created: 2013-07-05T05:15:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-06T15:45:38.000Z (over 11 years ago)
- Last Synced: 2024-11-01T05:18:10.514Z (about 2 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ssh-version
===========Determine the remote version of ssh running on a host
Example
-------### Node Module
``` js
var sshversion = require('ssh-version');sshversion('localhost', function(err, version) {
console.log(version);
});
```yields
```
SSH-2.0-Sun_SSH_1.5
```### Command Line
$ ssh-version 10.0.1.10
SSH-2.0-Sun_SSH_1.5
$ ssh-version 10.0.1.1
connect ECONNREFUSEDUsage
-----### `sshversion(opts, function(err, version))`
`opts` can be a string specifying the host to identify, or an object with
the following properties- `opts.host`: the host to connect to
- `opts.port`: the port to connect to
- `opts.timeout`: the timeout, in ms, to enforce, defaults to system default#### Command Line
```
usage: ssh-version [port]
```Installation
------------npm install [-g] ssh-version
License
-------MIT License