Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use -t parameter to set key type

In Solaris, the "-t" parameter for ssh-keygen is mandatory.
Added to make this library compatible with Solaris.
The parameter also exists in any unix/linux environment, so it is backwards compatible.
  • Loading branch information...
commit a0a47447568ac9451cbcabb82dde98cac0c40299 1 parent 1346dbb
@palmerabollo palmerabollo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -12,7 +12,7 @@ module.exports = function (opts, cb) {
var tmpFile = '/tmp/' + n.toString(16);
var bits = opts.bits || 1000 + Math.floor(Math.random() * 100);
- var args = [ '-f', tmpFile, '-b', bits, '-N', '', '-q' ];
+ var args = [ '-f', tmpFile, '-b', bits, '-N', '', '-q', '-t', 'rsa' ];
var ps = spawn('ssh-keygen', args);
ps.on('exit', function (code) {
Please sign in to comment.
Something went wrong with that request. Please try again.