Ask Your Question
-2

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

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-13 21:27:35 -0500

thanks, i can login via openstack console using your answer but, i still can`t remote my vm using ssh can you help me please?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 2,486 times

Last updated: Sep 02 '17