If you are using Microsoft’s Azure Ubuntu, you may find that the default normal user azureuser has some limitations, such as not being able to use ports below 1024 when setting up SSH Server2Client (S2C) port mapping. At this time, you may want to use the root user to gain higher privileges and flexibility. However, Azure Ubuntu does not directly support root user login, you need to do some configuration to achieve it. This article will introduce how to enable and configure root user’s SSH login on Azure Ubuntu, and how to use root user’s SSH public key login method. Enable root user’s password login First, we need to set a password for the root user, and then modify some configuration files to allow root user’s password login. The specific steps are as follows: Log in to the system as a normal user azureuser, open the terminal, and enter the following command to set a password for the root user: sudo passwd root Enter your azureuser password, then enter the root password you want to s...