3 ms·
That is a good solution, but it can only be used if there is an existing out of band way to obtain the key from the instance. I think that is unusual for the ty
by mhb 18y ago
That is a good solution, but it can only be used if there is an existing out of band way to obtain the key from the instance. I think that is unusual for the typical AWS user.
- timf 18y agoA manual way to do it is to have the init scripts print the key to console and use EC2's get console output operation.
- mhb 18y agoYes: It looks like Amazon may be updating their AMIs to generate host keys if they don't already exist. Amazon is also making the host key fingerprint available to the user through one of the only secure communication channels available to an instance of a public AMI--the console output.
- garyrichardson 18y agoYou could modify the SSH init scripts to echo the host key to the console on boot. There's an API call to get the console output from a host. You need AWS credentials to access the console output. I see it as a valid out of band method for getting the SSH host key.