How to secure your Kali Linux Machine
This guide will show you the basic things you should do to secure your Kali Linux Machine
Last updated
This guide will show you the basic things you should do to secure your Kali Linux Machine
Last updated
#1.-change-the-default-passwords
#3.-update-upgrade-and-clean-your-machine
Kali Linux will come with some default passwords out of the box. You will have two accounts to begin with. One account is the 'root' account (Administrator) and the other is the 'Kali' account (user). It is important to change these passwords as every Kali installation will have exactly the same credentials.
The default credentials that come out of the box with Kali Linux are:
root/admin
root
kali
user/normal
kali
kali
You can see why these passwords are not secure. How we change it is very simple.
Using the command
So for example 'passwd root' will allow us to change the password. However, we cannot change the admin password from the Kali account. So firstly we need to switch over to the 'root' account to do all of this.
Commands to do this:
(then enter the password "kali" - all lowercase)
Press enter
Press enter
navigate to SSH key folder
make a folder to put old keys in
move old keys into the folder
Generate some new keys
This has all been done you can validate that this has worked by:
and then
and compare the values they should be different
Update and upgrade in one command by using:
Then
These commands might take a while to run, however, it is important to run these commands regularly and on a fresh install.
Watch the Full Video Guide