Discussion Overview
The discussion revolves around the challenges faced when attempting to add a passphrase to an existing SSH private key file, particularly in the context of using different tools like ssh-keygen and PuTTY. Participants explore the implications of key management and the compatibility of key formats across platforms.
Discussion Character
- Technical explanation
- Debate/contested
- Exploratory
Main Points Raised
- One participant recalls generating a key without a passphrase and suggests that the command ssh-keygen -p -f id_rsa_priv.ppk should work, but encounters issues when prompted for an old passphrase.
- Another participant describes their experience where changing a passphrase does not require entering an old passphrase if it was initially empty, suggesting the possibility of an unknown old passphrase in the original case.
- There is a suggestion that the participant may have another key-pair that allows access without a passphrase, indicating potential confusion about which key is being used.
- Multiple participants propose generating a new key-pair for travel and dropping the public key on remote servers as a workaround.
- One participant notes the complexity of using PuTTY, which generates .ppk files, and suggests that this may complicate the use of ssh-keygen.
- A later reply confirms that using PuTTY's tool (puttygen) successfully added a passphrase, highlighting compatibility issues between different tools.
Areas of Agreement / Disagreement
Participants express differing experiences and solutions regarding the use of ssh-keygen and PuTTY, indicating that there is no consensus on the best approach to add a passphrase to the key file. The discussion remains unresolved regarding the specific reasons for the initial issues faced.
Contextual Notes
There are limitations regarding the assumptions about the key's original state and the compatibility of different key formats across tools. The discussion does not resolve the underlying reasons for the passphrase prompt encountered by the original poster.