markwal / OctoPrint-PolarCloud

OctoPrint plugin that connects OctoPrint to the Polar3D cloud. You easily monitor your printer from outside your LAN without arcane setup of port forwarding, etc. Plus, take advantage of the rapidly evolving Polar Cloud capabilities and UI.
GNU Affero General Public License v3.0
15 stars 8 forks source link

Unable to generate public key on OSX #41

Closed EvanTheTerrible closed 3 years ago

EvanTheTerrible commented 6 years ago

I had an extra mac mini laying around running 10.10.5 so I put it to use as an octoprint server. Everything works fine BUT I can't get PolarCloud to work.

2018-07-29 16:37:46,455 - octoprint.plugins.polarcloud - ERROR - Unable to generate public key (may need to manually upgrade pyOpenSSL, see README) 1: Too many arguments. usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa] [-N new_passphrase] [-C comment] [-f output_keyfile] ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] ssh-keygen -i [-m key_format] [-f input_keyfile] ssh-keygen -e [-m key_format] [-f input_keyfile] ssh-keygen -y [-f input_keyfile] ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile] ssh-keygen -B [-f input_keyfile] ssh-keygen -D pkcs11 ssh-keygen -F hostname [-f known_hosts_file] [-l] ssh-keygen -H [-f known_hosts_file] ssh-keygen -R hostname [-f known_hosts_file] ssh-keygen -r hostname [-f input_keyfile] [-g] ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines] [-j start_line] [-K checkpt] [-W generator] ssh-keygen -s ca_key -I certificate_identity [-h] [-U] [-D pkcs11_provider] [-n principals] [-O option] [-V validity_interval] [-z serial_number] file ... ssh-keygen -L [-f input_keyfile] ssh-keygen -A ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number] file ... ssh-keygen -Q -f krl_file file ...

2018-07-29 16:37:46,456 - octoprint.plugins.polarcloud - INFO - Can't register because unable to generate signing key

I believe I have updated pyOpenSSL, but I'm at the point where I've tried so many things I have no idea. :-)

What am I doing wrong? Thanks!

EvanTheTerrible commented 6 years ago

I searched through the init file and found command_line = "ssh-keygen -e -m PEM -f {key_filename} > {pubkey_filename}".format(key_filename=key_filename, pubkey_filename=pubkey_filename)

Parsing through this as best I could, I ran ssh-keygen -e -m PEM -f p3d_key and got the following error: "PEM_write_RSAPublicKey failed"

Googling that lead me down a rabbit hole of updating OpenSSH, trying to beat that into submission and still I have nothing.