Closed devwout closed 5 years ago
@syuu1228 can you please take a look
@devwout @tzach cloud-init should initialize it by default, if it doesn't initialized, then cloud-init setting is incorrect or something.. will take a look
In /etc/cloud/cloud.cfg
, it seems explicitly disabled with ssh_deletekeys: 0
.
I don't see which CentOS cloud image serves as a basis for this AMI, but it seems the ssh_deletekeys: 0
setting originates there. Unless I'm missing something, this is problematic.
As a workaround, this line could be removed in the scylla_install_ami
script, which already rewrites cloud.cfg
anyway, removing the mounts
module. It may as well remove lines matching ssh_deletekeys:
and fall back to the (safe) cloudinit default.
It may be worth basing the AMI on a saner base image or report this upstream. Maybe they had a reason to do this?
Closing, a patch was merged long ago.
After creating an instance with the scylla ami-f588ee8f , the contents of
/etc/ssh
includes the following:These files are the same on all instances, which is not secure. The
scylla_install_ami
script should probably delete these?