The virtual machine cannot be accessed via SSH. How do I resolve this?
Cause
The SSH configuration file was incorrect when the image was sealed.
Solution
-
Log in to the virtual machine console, edit the
/etc/ssh/sshd_configfile, and set the PasswordAuthentication parameter to yes.As shown in Figure 1:

-
Edit the
/etc/cloud/cloud.cfgfile and set the ssh_pwauth parameter to 1. -
After modifying the configuration, reseal the image.