Cannot parse privateKey: Unsupported key format
up vote
0
down vote
favorite
In my Mac book pro with OS Majave, I used SSH-KEYGEN generate a new SSH key for node.js module SSH2. However, I got error message "Cannot parse privateKey: Unsupported key format". I validated the key with ssh command, it just works fine. But not the node.js module SSH2. In the private key file, the header is "-----BEGIN OPENSSH PRIVATE KEY-----" while the end is "-----END OPENSSH PRIVATE KEY-----". I checked module ssh2-streams keyParser.js. The regexp pattern RE_HEADER_OPENSSH_PRIV does not include my header. Anyone can help?
node.js ssh openssh ssh-keygen ssh2
add a comment |
up vote
0
down vote
favorite
In my Mac book pro with OS Majave, I used SSH-KEYGEN generate a new SSH key for node.js module SSH2. However, I got error message "Cannot parse privateKey: Unsupported key format". I validated the key with ssh command, it just works fine. But not the node.js module SSH2. In the private key file, the header is "-----BEGIN OPENSSH PRIVATE KEY-----" while the end is "-----END OPENSSH PRIVATE KEY-----". I checked module ssh2-streams keyParser.js. The regexp pattern RE_HEADER_OPENSSH_PRIV does not include my header. Anyone can help?
node.js ssh openssh ssh-keygen ssh2
I found this issue in github.com/mscdex/ssh2-streams/issues/100 . Anyone have any idea to fall back the ssh-keygen to old version?
– George Zhang
11 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In my Mac book pro with OS Majave, I used SSH-KEYGEN generate a new SSH key for node.js module SSH2. However, I got error message "Cannot parse privateKey: Unsupported key format". I validated the key with ssh command, it just works fine. But not the node.js module SSH2. In the private key file, the header is "-----BEGIN OPENSSH PRIVATE KEY-----" while the end is "-----END OPENSSH PRIVATE KEY-----". I checked module ssh2-streams keyParser.js. The regexp pattern RE_HEADER_OPENSSH_PRIV does not include my header. Anyone can help?
node.js ssh openssh ssh-keygen ssh2
In my Mac book pro with OS Majave, I used SSH-KEYGEN generate a new SSH key for node.js module SSH2. However, I got error message "Cannot parse privateKey: Unsupported key format". I validated the key with ssh command, it just works fine. But not the node.js module SSH2. In the private key file, the header is "-----BEGIN OPENSSH PRIVATE KEY-----" while the end is "-----END OPENSSH PRIVATE KEY-----". I checked module ssh2-streams keyParser.js. The regexp pattern RE_HEADER_OPENSSH_PRIV does not include my header. Anyone can help?
node.js ssh openssh ssh-keygen ssh2
node.js ssh openssh ssh-keygen ssh2
asked 11 hours ago
George Zhang
315
315
I found this issue in github.com/mscdex/ssh2-streams/issues/100 . Anyone have any idea to fall back the ssh-keygen to old version?
– George Zhang
11 hours ago
add a comment |
I found this issue in github.com/mscdex/ssh2-streams/issues/100 . Anyone have any idea to fall back the ssh-keygen to old version?
– George Zhang
11 hours ago
I found this issue in github.com/mscdex/ssh2-streams/issues/100 . Anyone have any idea to fall back the ssh-keygen to old version?
– George Zhang
11 hours ago
I found this issue in github.com/mscdex/ssh2-streams/issues/100 . Anyone have any idea to fall back the ssh-keygen to old version?
– George Zhang
11 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400628%2fcannot-parse-privatekey-unsupported-key-format%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I found this issue in github.com/mscdex/ssh2-streams/issues/100 . Anyone have any idea to fall back the ssh-keygen to old version?
– George Zhang
11 hours ago