after waagent -deprovision unable login with ssh.

Michiteru Sugitani 70 Reputation points
2023-04-11T08:19:06.6633333+00:00

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.
Michiteru

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

2 answers

Sort by: Most helpful
  1. Michiteru Sugitani 70 Reputation points
    2023-04-11T09:50:15.3+00:00

    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
    2023-04-11T10:37:54.11+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.