We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3c02f commit bf8ad96Copy full SHA for bf8ad96
lib/server.js
@@ -47,6 +47,8 @@ function Server(cfg, listener) {
47
privateKey = parseKey(hostKeys_[i].key, hostKeys_[i].passphrase);
48
if (privateKey instanceof Error)
49
throw new Error('Cannot parse privateKey: ' + privateKey.message);
50
+ if (Array.isArray(privateKey))
51
+ privateKey = privateKey[0]; // OpenSSH's newer format only stores 1 key for now
52
if (privateKey.getPrivatePEM() === null)
53
throw new Error('privateKey value contains an invalid private key');
54
if (hostKeys[privateKey.type])
0 commit comments