🔒How to secure your Kali Linux Machine
This guide will show you the basic things you should do to secure your Kali Linux Machine
Overview
#1.-change-the-default-passwords
#3.-update-upgrade-and-clean-your-machine
1. Change the default passwords
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:
Account | Username | Password |
---|---|---|
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
2. Change your SSH Keys
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
3. Update, Upgrade, and Clean your machine
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
Last updated