#3 Create sudo user – Debian 10 – Create root user – admin user – Virtualmin Tutorial on Debian



#3 Create sudo user – Debian 10 – Create root user – admin user – Virtualmin Tutorial on Debian

#3 Create sudo user - Debian 10  - Create root user -  admin user - Virtualmin Tutorial on Debian

Create sudo user Debian 10 .
Create root user on Debian.
Add Admin user debian 10.
using Git bash to setup VPS server.

USEFUL LINKS / Resources

– Vultr VPS : https://bizanosa.com/vultr

– Debian 10 Server setup post: https://bizanosa.com/debian-10-initial-server-setup-vps-vultr/

– Linux/Mac Setup SSH Authentication : https://bizanosa.com/generate-ssh-keys-linux-server/

– Setup SSH Authentication Via Git Bash : https://bizanosa.com/ssh-authentication-using-git-bash/

– On Windows, Setup SSH Authentication via Puttygen & Putty : https://www.youtube.com/watch?v=7wIHBPzBx-A

– Full Virtualmin Tutorial Playlist : https://www.youtube.com/watch?v=NTQREVEcBb4&list=PLhhBJ0l9FKMOHUhWkKGL_R2-dfq4Ws_K0&index=1&ab_channel=RickyWahowaRickyWahowa

– 2 Ways to handle DNS : https://youtu.be/x_utMtySDcI

– About Child Nameservers : https://youtu.be/OpVxTJOlTu4

So if you’re still with me, this is where we had stopped. And what needs to happen now is, we need to create a sudo user. Let me clear. I will clear the

screen.

We need to set up, as I’ve said, we need to set up a sudo user and the sudo user is going to give us all the admin privileges that we need. Let’s come back to the post here and the link for this is in the description. If it’s not there, just remind me and I’m going to add it.

You can also use putty to log in if you want to. So let’s add the user and I’m going to give it a different name from that.

adduser

Give the user a strong password.

All right! Ppassword updated successfully. All these others I can just press enter to skip. Skip all of that. All right, and then the next step is we want to make this user a sudo user, okay . We need to add them; give them the pseudo privileges.

I’ll copy that bit.

And I’ll paste that. And the user is that. Give it the user that you created. This user now is an admin user . So if you do experience any problem depending on the vps that you’re using you may experience a problem whereby this command is not going to work. You’re going to get told that sudo is not recognized. So what that means is that they have a very minimal install of Debian and what you need to do is you need to install sudo. That’s all you need to do. Just install sudo and then run the command again, all right?

The next step is for me to try and log in. I’m going to try and log in with the new details . The new details for this guy and then once we are able to log in and we are able to run sudo commands, I’m going to immediately disable the root user from logging into the server. I will open up a new Git Bash window and then I want to get the IP address.

ip and I want to login, ssh newuser and then the password for the new user.

Okay! There we go. The new user has logged in. Let’s just test if we can run sudo commands. I’m going to do sudo apt update.

Enter the passwor. Every time you use sudo for the first time it’s going to ask you for the password.

And you can see, we can run sudo commands. So that means that everything is working well.

We’ve already set up the new user, now, the next process is , let’s see what’s next here. The next process I think we need to set up ssh and I’m not going to set up firewall because I’m going to install virtualmin and virtualmin is going to add all the ports that we need.

The next thing is to set up ssh . You can set up ssh using putty, but I’m also going to show you how you can set it up using git bash. Using the git bash method on windows. If you’re on windows you can set up ssh using git bash or using putty.

If you are on a Mac or a Linux you can use git bash. You can actually follow along with me using Git Bash, but I also do have a very intense tutorial here . Very intensive about how you can set up ssh Authentication on your Linux or Mac computer for your for your CentOS, RHEL or Debian . So this basically works on any Linux distribution. Just follow this if you want to set up your ssh key and be able to log in using ssh and then once we do that we’re going to disable password authentication so that people can only log in using the ssh keys.

If someone doesn’t have the ssh key they will not be able to access the server and that’s the next thing that we’re going to do. I can set up this using git bash or putty but I do have a tutorial with git bash. Let me just look for that, git , et me just search for git bash.

And there we go. You can set up ssh using git bash and this will also work for you if you’re in Windows and you’re following along with git bash. You can use this one as well so this is just the same way that you do it on Linux. Right!

.

If this video was helpful to you, please consider supporting my channel : https://paypal.me/rwahowa
.
GET SOCIAL WITH ME:
FACEBOOK: https://www.facebook.com/rwahowa/
INSTAGRAM: https://www.instagram.com/rwahowa/
TWITTER: https://twitter.com/rwahowa/
VIMEO: https://vimeo.com/bizanosa/
WEBSITE : http://rwahowa.com

Comments are closed.