Computer Science SupportWeb
Converting your Commercial SSH keys to OpenSSH keys
- Remove the passphrase from your commercial ssh private key using commercial ssh installed under /bham/pd:
/bham/pd/packages/ssh-2.4.0/bin/ssh-keygen -e ~/.ssh2/id_dsa_1024_a
Say "yes" when it asks you if you want to edit the key; say "no" when it asks you if you want to edit the key comment; say "yes" when it asks you if you want to edit the passphrase, then hit enter twice to set an empty passphrase; say "no" when it asks you if you want to continue editing, then say "yes" when it asks you if you want to save the key.
- Convert your commercial ssh private key to an OpenSSH private key:
ssh-keygen -i -f ~/.ssh2/id_dsa_1024_a > ~/.ssh/id_dsa
- Put a passphrase back on your converted private key:
ssh-keygen -p -f ~/.ssh/id_dsa
- Convert your commercial ssh public key to an OpenSSH public key:
ssh-keygen -i -f ~/.ssh2/id_dsa_1024_a.pub >> ~/.ssh/authorized_keys
- It might be an idea to put a passphrase back on your commercial ssh private key, so repeat step 1 but this time enter a passphrase instead of hitting enter twice.