I'm using JSch connect to a server. I'm converting my private key to the OpenSSH because this is what is needed (so I'm told). My two questions are:
The name of the key pair file does not matter, as you explicitly tell JSch the path to the file. All the JSch cares for is the contents.
Though a convention is to use id_dsa
or id_rsa
.
If you convert the key pair file from one format (e.g. PuTTY/.ppk) to another (e.g. OpenSSH) and you can authenticate using the key in the original format, you do not need to add a new public key to the server. Because there's no new public key. The key pair (both the private key and the public key) is still the same. All that changes is the format how the key is stored in the file.