after waagent -deprovision unable login with ssh.

Michiteru Sugitani 70 Reputation points

Hi All.
Hello I would like to make copy Linux VM on Azure.

I thought use capture function first. and then I did run command "sudo waagent -deprovision+user -force" But I noticed If used capture function once, that VM become unable to start. so I stopped use capture function.

I chosen snapshot function. After this It will became I unable to login with SSH. Does this cause from diasble waagent? How can I login with ssh again?

Best regards.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,539 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michiteru Sugitani 70 Reputation points

    Now I can login from serial console.
    sshd stopped.
    and unable to restart sshd. umm...

    0 comments No comments

  2. Michiteru Sugitani 70 Reputation points

    I checked messages log.
    according to message log, no ssh key on /etc/ssh directly.
    So I put key to /etc/ssh and /root/.ssh.
    then I able to login with ssh now.

    0 comments No comments