ssh-version

Determine the remote version of ssh running on a host

ssh-version

Determine the remote version of ssh running on a host

var sshversion = require('ssh-version');
 
sshversion('localhost', function(errversion) {
  console.log(version);
});

yields

SSH-2.0-Sun_SSH_1.5
$ ssh-version 10.0.1.10
SSH-2.0-Sun_SSH_1.5
$ ssh-version 10.0.1.1
connect ECONNREFUSED

and

usage: ssh-version <host> [port]
npm install [-g] ssh-version

MIT License