Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get Private Key #209

Closed
prachaya2639 opened this issue Jul 1, 2021 · 6 comments
Closed

how to get Private Key #209

prachaya2639 opened this issue Jul 1, 2021 · 6 comments
Labels
stale Inactive

Comments

@prachaya2639
Copy link

I don't know to get a Private Key path

Thank you.

@prachaya2639
Copy link
Author

I have a problem.
image

@eduardomarco
Copy link

I have the same problem

@worksofliam
Copy link
Contributor

I will have to look into getting this setup myself.

@SJLennon
Copy link
Contributor

Didn't @onewheelonly add the support for SSH private keys? Perhaps he could weigh in on this one.

@martintosney
Copy link

I did indeed. I've never seen this message before though. I assume it comes from the ssh2 library that we use, but a quick Google for that text didn't turn up any results.

@prachaya2639 and/or @EduardoMaro - Can you please tell me a little about your private keys? What algorithm/key size do you use? And when you look at the text within the private key file, can you tell me what the first line looks like please?

@priceaj
Copy link
Contributor

priceaj commented Sep 20, 2021

FWIW The code that is producing this error is here: https://github.com/mscdex/ssh2-streams/blob/8de25ea69a76dbf1c34e578e42571e97de926ac0/lib/ssh.js

It occurs when the SSH protocol identification is too long (> 255 characters)

The identification string should look something like SSH-<protocolmajor>.<protocolminor>-<version>\n

I would suggest trying to connect to the same box using an SSH client like PuTTY or KiTTY and if you can connect you will see a line in the event log something like:

We Claim version: SSH-2.0-PuTTY-KiTTY
Server version: SSH-2.0-OpenSSH_8.0

You could also try connecting directly using the SSH2 module and seeing if that works:

Method is here #125 (comment)

You should see domething like:

Local ident: 'SSH-2.0-ssh2js1.4.0'
Socket connected
Remote ident: 'SSH-2.0-OpenSSH_8.0'

Let us know if either of these methods work and what both of the identification strings look like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive
Projects
None yet
Development

No branches or pull requests

6 participants