'Invalid key file' on openssh key format. (with workaround)

6 views
Skip to first unread message

luke....@gmail.com

unread,
Apr 27, 2020, 5:08:01 AM4/27/20
to fed4fire-experimenters
Hello

While trying to use the custom ssh key-pair feature found in the Preference dialogue under the SSH Authentication tab I have hit an error.
When I provide my ssh-keygen generated rsa private key jFed give me an Invalid key file error asking me to provide a valid private key. 

Openssh format for storing ssh private keys recently became the new default and I assume jFed does not recognize it.
Keys at the openssh format have the "-----BEGIN OPENSSH PRIVATE KEY-----" ascii armor.

Users confronted with this problem can generate a copy of their private key using the older PEM format which is recognized by jFed.
To do so:
1) copy your ssh private key.
2) run "ssh-keygen -p -m PEM -f </path/to/key/copy>"
           due to the -p flag you will be promted to change passwords, feel free to reuse the same password
           the -m PEM flag will prompt open ssh-keygen to change the file format after the "password change"
3) your copy should be at the PEM format and the acsii armor should open with "-----BEGIN RSA PRIVATE KEY-----"

PEM keys are recognized jFed and ssh so connection from this point on should work without any problem.

Wim Van de Meerssche

unread,
Apr 30, 2020, 10:12:06 AM4/30/20
to luke....@gmail.com, fed4fire-experimenters
Hi Luke,

Thanks for reporting that. The next version of jFed will have support for openssh format private keys (RSA only for now).


Best Regards,
Wim Van de Meerssche

--
You received this message because you are subscribed to the Google Groups "fed4fire-experimenters" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fed4fire-experime...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fed4fire-experimenters/9fe27dfe-90f3-41c8-9dd1-cf850342aa2e%40googlegroups.com.


--
Wim Van de Meerssche
Ghent University - imec
IDLab
iGent Tower - Department of Information Technology
Technologiepark-Zwijnaarde 126, B-9052 Ghent, Belgium
Tel: +32 9 33 14940
Email: wim.vande...@UGent.be
Web: IDLab.UGent.be
Web: IDLab.technology
Reply all
Reply to author
Forward
0 new messages