create a sudo user in a Linux VM

2021-02-08T15:42:42.463+00:00

I have a Linux VM in azure, to which I can ssh with the user I created when the machine was created and the corresponding private key.

I want to create another user with sudo and ssh privileges. I tried to do this from inside the VM. I can create a user, but it seems that to allow ssh there are several steps, which I am not completely sure about.

I also tried to use the portal but it seems that I have to go through the access control-role assignment control stuff, correct?

What is the easiest way to create a user with sudo privileges such that I can let a partner (from a different organization) ssh access to my VM machine?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,254 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 98,621 Reputation points MVP
    2021-02-08T15:50:00.28+00:00