Author

Topic: cryptographic handshake: peer closed connection (wrong key?). (Read 95 times)

legendary
Activity: 2730
Merit: 7065
The "cryptographic handshake" error appears in a few GitHub issues. Here is one such example where the --bind-addr flag command was missing in the container. The user there had a problem to connect two of his nodes (one to the other). Check it out, maybe it can help > https://github.com/ElementsProject/lightning/issues/2337.
legendary
Activity: 1876
Merit: 3132
Is there a way to determine what Electrum's onion address is so I can pass that to c-lightning in :
: format?

You could try connecting to your c-lightning node from Electrum. Open the console and type in:

Code:
add_peer("id@ip_address of your c-lightning node")

Code:
nodeid()

Copy the output and use it in the lightning-cli openchannel command.
sr. member
Activity: 502
Merit: 251
It seems I'm having an address issue.

Is there a way to determine what Electrum's onion address is so I can pass that to c-lightning in :
: format?
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
Is "Use trampoline routing (disable gossip)" setting in Electrum enabled?
It can be found in "Tools->Preferences->'Lightning' tab" of the GUI or the "use_gossip": true, line of the config file.

If that's enabled, you wont be able to connect to any lightning nodes other than the (currently) 3 hardcoded Electrum trampoline nodes.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
Have you tested if clightning can connect to other nodes and open channels? Have you made an address in clightning?

Does the node appear via your peer discovery in electrum or did you input it manually? (im assuming you're trying to open a channel from electrum to the clightning client also as I'm not sure if it's as easy to do one the other way).

sr. member
Activity: 502
Merit: 251
I'm trying to connect to my local Electrum lightning node using c-lightning, but why do I get this error:
Code:
All addresses failed: 127.0.0.1:9735: cryptographic handshake: peer closed connection (wrong key?).
?
Jump to: