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

unable to connect to nodes using key #2

Closed
mrd0ll4r opened this issue Jul 12, 2016 · 4 comments
Closed

unable to connect to nodes using key #2

mrd0ll4r opened this issue Jul 12, 2016 · 4 comments

Comments

@mrd0ll4r
Copy link

mrd0ll4r commented Jul 12, 2016

Hey guys, thanks for the tool, it's just what I need right now!

Unfortunately I can't seem to connect to the nodes using my key, this is what the log says:

2016-07-12 10:26:41 [FATAL] acquiring global cluster lock failed
└─ connection to 10 of 10 nodes failed
   └─ can't connect to nodes
      ├─ can't connect to address: [ubuntu@10.150.7.7:22]
      │  └─ can't parse pem data: asn1: structure error: tags don't match (16 vs {class:3 tag:25 length:12 isCompound:false}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} pkcs1PrivateKey @2
...

Using the password-based approach works, but of course using a key would be nicer :)

I cannot send you my key for obvious reasons, but this is what it looks like:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,<probably fingerprint?>

<key data>
-----END RSA PRIVATE KEY-----

Any ideas? Is it because the key is encrypted?

@seletskiy
Copy link
Member

Hi!

Hmm, looks like problem in the key parsing lib. Can you send another newly generated key or tell how can I generate that key type by myself?

On Jul 12, 2016, 8:39 PM, at 8:39 PM, mrd0ll4r notifications@github.com wrote:

Hey reconquest, thanks for the tool, it's just what I need right now!

Unfortunately I can't seem to connect to the nodes using my key, this
is what the log says:

2016-07-12 10:26:41 [FATAL] acquiring global cluster lock failed
└─ connection to 10 of 10 nodes failed
  └─ can't connect to nodes
     ├─ can't connect to address: [ubuntu@10.150.7.7:22]
│  └─ can't parse pem data: asn1: structure error: tags don't match (16
vs {class:3 tag:25 length:12 isCompound:false}) {optional:false
explicit:false application:false defaultValue:<nil> tag:<nil>
stringType:0 timeType:0 set:false omitEmpty:false} pkcs1PrivateKey @2
...

Using the password-based approach works, but of course using a key
would be nicer :)

I cannot send you my key for obvious reasons, but this is what it looks
like:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,<probably fingerprint?>

<key data>
-----END RSA PRIVATE KEY-----

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#2

@mrd0ll4r
Copy link
Author

Hey,

thanks for looking into this!

I generated a new key pair using ssh-keygen -b 4096. The passphrase used for the key attached is password.

testkey.pub.txt
testkey.txt

@seletskiy
Copy link
Member

@mrd0ll4r: Try it now.

@mrd0ll4r
Copy link
Author

It's working, thanks! 👍

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

No branches or pull requests

2 participants