[PLUG] Re-doing ssh key phrase and key type

Paul Mullen pm at nellump.net
Wed Oct 26 00:33:24 UTC 2016


On Tue, Oct 25, 2016 at 04:56:30PM -0700, Tom wrote:
> If ssh key is the only way into those hosts, keep your old key files
> somewhere outside .ssh directory until you are sure that you new key
> lets you in. You can remove the old keys from authorized_keys file when
> everything is proven to be working as expected.

You can leave them in ~/.ssh if you rename them before creating new
keys.  Append "-prev" or something to the file name of both keys.  If
you need to use the old key pair, specify the path to the private key
with ssh's "-i" option.  E.g., "ssh -i ~/.ssh/id_rsa-prev"


-- 
Paul



More information about the PLUG mailing list