1 login in VM
login in the console and then change the configuration
sudo -i vim /etc/ssh/sshd_config
change the following lines
PermitRootLogin yes
PasswordAuthentication yes
reboot and then change you password
passwd # if you want change other user's password passwd username