3 ms·
Even the OpenSSH people will tell you not to copy private keys around. Non-ephemeral private keys should be generated where they will be used. You can copy the
by jessaustin 8y ago
Even the OpenSSH people will tell you not to copy private keys around. Non-ephemeral private keys should be generated where they will be used. You can copy the public key...
- Dylan16807 8y agoOkay I generated a key on a computer that I will only be using for the next 3 hours, and may never see again. How do I install it? Is that method actually more secure than carrying around an encrypted key?
- maxerickson 8y agoIt doesn't take that long to arrive at the conclusion that you should not expose any secret to untrusted hardware. So creating a one time use key for that computer is probably a good idea, you can revoke it once you are done using it and then it won't cause you any problems in the future.
- angry_octet 8y agoYep, there is no point in generating a new key if you can't get the other end to trust it. You could generate a new trusted key every time you log on (and encrypt with password), and invalidate the old key, making sure to copy it to your USB. That would roll the keys, and cause you to be locked out with that key if anyone used it. But a bit involved. Single use login codes on paper probably the easiest way around the problem. https://www.digitalocean.com/community/tutorials/install-and-use-otpw https://www.digitalocean.com/community/tutorials/install-and... Also, you can configure the google-authenticator TOTP module to request key and token IIRC. GA also has OTPW backup codes.