Root login Ubuntu VM on Azure

后端 未结 6 1694
情深已故
情深已故 2021-02-02 13:38

Installed Ubuntu Server LTS 14.04 from Azure library on Azure VM. Logged in as standard \"azureuser\" created by Azure with my password. Changed root password:

s         


        
6条回答
  •  灰色年华
    2021-02-02 14:13

    I wasn't able to get any of the other answers to work for me, but this answer worked for my case.

    For those too lazy to click the link:

    ssh -i KEYPAIR.pem ubuntu@HOSTNAME   'sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/'
    

提交回复
热议问题