3 ms·
What's the best way of dealing with the chicken-and-egg problem of initial login when using PKA? Should login be denied until the private key is uploaded via s
by nitrogen 16y ago
What's the best way of dealing with the chicken-and-egg problem of initial login when using PKA? Should login be denied until the private key is uploaded via something other than ssh?
- lsc 16y agothat's how I do it. I make you email me a public key before I set you up, then I use that public key to control access to your serial console. Right now my big problem is that the channel for the public key is email, which is no good. On larger deployments I've always put the ssh pubkeys for authorized users in a package that is installed when the server is installed.
- bmelton 16y agoNo, you should do it via SSH, just try to do it as soon after standing up your server as possible. The only place I know of that gets this right is Amazon, who stands it up with a key (admittedly one of theirs) that they force you to download before you can connect the first time.
- datums 16y agoYou can now import your own ssh key. http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/index.html?ApiReference-cmd-ImportKeyPair.html http://docs.amazonwebservices.com/AWSEC2/latest/CommandLineR...