简体   繁体   中英

Unable to login to AWS instance after installing cloud-init

I have a custom ami crated after importing an .ova file following the process outlined here .

After spinning up an instance from that particular ami , I am able to login to the instance using ubuntu@private-ip .

I then proceed to installing cloud-init :

$ sudo apt update
$ sudo apt install -y cloud-init

(my .ova did not have the cloud-init when importing it)

I then reboot the instance (after cloud-init 's installation) and I keep getting the following:

ubuntu@private-ip's password: 
Permission denied, please try again.
ubuntu@private-ip's password: 

I replicated the process in a VMware player and it seems cloud-init is messing with the VM`s ssh configuration:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM