When no SSH credentials are specified, Packer will generate a temporary SSH keypair for the instance. You can change the algorithm type and bits settings.