Community
Participate
Working Groups
Generating a key via the SSH2 preference pane allows RSA or DSA keys to be generated with 1024 bits. However, this is generally seen as not secure enough and is lower than the ssh-keygen default of 2048 bits. We should ideally generate at least 2048 bits, preferably 4096 bits, or provide a way for the user to specify the lengths and details. Additionally since the use of DSA has been called into question perhaps we should just focus on RSA, or promote that over DSA by re-ordering the fields.
Moving to Platform/Team since the SSH2 preference page is org.eclipse.jsch.internal.ui.preference.PreferencePage.
*** This bug has been marked as a duplicate of bug 404714 ***
Created attachment 279261 [details] patches RSA keys generation to 2048 bits Bitbucket has rejected the RSA-1024 key generated by Eclipse. DSA-1024 was accepted but is deprecated elsewhere (e.g. OpenSSH). This really needs to be finally updated. I made a small patch for org.eclipse.jsch.ui/src/org/eclipse/jsch/internal/ui/preference/PreferencePage.java to generate RSA keys with length of 2048. I left DSA keys length at 1024 bits as it was since i'm not sure whether 2048 is supported. I didn't test the patch but it's very simple: just pass another parameter to JSch and emit appropriate text comment.