dictionaryla.blogg.se

Ubuntu server azure
Ubuntu server azure











ubuntu server azure

Then paste the ssh key into the nano editor and save the file as authorized_keys. Open in a notepad and prefix ssh-rsa and ensure single string for public key without return keys.

ubuntu server azure ubuntu server azure

If used puttygen to generate keypair, make sure to copy and bring public key to a single line string as it is generated as multiline. You may use a paraphrase so that you have to provide it while ssh to the Linux VM with the new user. Save both public and private keys to your Windows machine. Now in your windows machine you can create new key pair with puttygen for the new user. nano file path will open up an editor window. Now let’s create folder for keeping public key for the new user.Īs next step let’s create and store the public key in authorized_keys in the ~./ssh folder for the new user. Using the usermod command as below will allow us to add the user as admin (who can execute sudo commands). The user with home as home/username will be created when we use the command with -m. To create the user, we can use the useradd command. You can use putty on Windows if your machine is running on Windows. In this post let us look at steps to add an additional admin user to Ubuntu Linux VM in Azure and how we can enable ssh to the VM with that user.įirst SSH into the Linux VM in Azure using the private key for the default user. This is beneficial as in case we need to reset access for the default user, we can do so without harming anything setup for Ansible. If we are setting up Ansible on a Linux VM in Azure it is recommended to use a separate user with Admin permissions, instead of the default user who has the root access as well. Maybe it is for setting up a Jenkins or Ansible server.

ubuntu server azure

We can setup Linux VMs in Azure for various reasons.













Ubuntu server azure