change debian qcow login

asked 2017-09-02 19:31:04 -0500

Georgios gravatar image

Hi In case you use DEBIAN qcow image to instantiate VMs and you have problem with login you can add the below in the "Configuration Script" and you will have access fromthe VNC console with user:root and password:password

#cloud-config
# vim:syntax=yaml
debug: True
ssh_pwauth: True
disable_root: false
chpasswd:
  list: |
    root:password
    cloud-user:password
  expire: false
runcmd:
- sed -i'.orig' -e's/without-password/yes/' /etc/ssh/sshd_config
- service sshd restart

Thanks!

edit retag flag offensive close merge delete

Comments

This is not a question

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-09-04 03:03:45 -0500 )edit

I know but I would like to help as in some cases like this one there is no information. Thanks

Georgios gravatar imageGeorgios ( 2017-09-04 07:05:32 -0500 )edit