Initial Setup
Common Steps
- Download the Kali Linux installer from the official Kali website.
- Use Balena Etcher to create a bootable USB install drive.
- Plug the USB drive into the system and boot from it.
- This step may need BIOS changes. (e.g. secure boot disabling, legacy mode activation)
- Complete the installation as desired.
- Login using the user account.
- Open a
Terminal Emulator
. - Note the IP address:
ifconfig
- Enable the SSH server service:
sudo systemctl enable ssh
- Perform a full system update - this will take a while:
sudo apt update && sudo apt full-upgrade
- Reboot the system:
sudo reboot
SSH
Password Authentication
[!CAUTION] This is not a recommended method of authentication, especially if your system is connected to the Internet. You should use SSH keys.
- Edit the configuration file as a superuser:
sudo nano /etc/ssh/sshd_config
- Uncomment the line:
PasswordAuthentication yes
- Restart the SSH server:
sudo systemctl restart ssh
- You may now logout, and remote into the system.
Key-based Authentication
To be confirmed.
Headless Installation (RPi)
For a headless installation, and to have the system connect to a WiFi network automatically, add a wpa_supplicant.conf
file to the first partition of the USB drive.
Generate the file using the following command on a different Linux system:
wpa_passphrase YOURNETWORK > wpa_supplicant.conf
[!CAUTION] Your user’s shell history will now contain your WiFi network password, edit your shell’s history file to remove it. (e.g.
~/.zsh_history
,~/.bash_history
)