I have an existing public/private key pair. The private key is password protected, and the encryption may be either RSA or DSA. These keys are the kind you generate with ssh-keygen and generally store under ~/.ssh.
I'd like to change the private key's password. How do I go about it, on a standard Unix shell?
Also, how do I simply remove the password? Just change it to empty?
-ooption to enable the new private key format (bcrypt as KDF by default). With older OpenSSH versions, use PKCS#8 for more secure private key files. – Quinn Comendant Aug 05 '15 at 18:14$ ssh-keygen -p -f ~/.ssh/id_rsa– Francisco Luz Aug 27 '15 at 04:04ssh-keygen -p. A default path will be suggested, just like when generating a key. – Alex Palmer Aug 24 '18 at 08:23