![]() ![]() You will be asked a few questions, starting with the account password.Įnter a strong password and, optionally, fill in any of the additional information you would like. This example creates a new user called sammy, but you should replace it with a username that you like: Once you are logged in as root, we’re prepared to add the new user account that we will use to log in from now on. Later, we’ll explain how to gain increased privileges for those times when you need them. The next step is to set up an alternative user account with a reduced scope of influence for day-to-day work. This is because part of the power inherent with the root account is the ability to make very destructive changes, even by accident. Because of the heightened privileges of the root account, you are discouraged from using it on a regular basis. The root user is the administrative user in a Linux environment that has very broad privileges. If this is your first time logging into the server with a password, you may also be prompted to change the root password. If you are using an SSH key that is passphrase protected, you may be prompted to enter the passphrase the first time you use the key each session. If you are using password authentication, provide your root password to log in. If you are not already connected to your server, go ahead and log in as the root user using the following command (substitute the highlighted portion of the command with your server’s public IP address):Īccept the warning about host authenticity if it appears. If you have not already logged into your server, you may want to follow our guide on how to connect to your Droplet with SSH, which covers this process in detail. You will also need the password or, if you installed an SSH key for authentication, the private key for the root user’s account. To log into your server, you will need to know your server’s public IP address. In this tutorial, we will learn how to log into our server as the root user, create a new user with admin privileges, and set up a basic firewall. This will increase the security and usability of your server and will give you a solid foundation for subsequent actions. When you first create a new Debian 11 server, there are a few configuration steps that you should take early on as part of the basic setup.
0 Comments
Leave a Reply. |