amd64
for most systems).sha256sum kali-linux-*.iso
Use a tool like Rufus (Windows), balenaEtcher, or dd
(Linux/macOS):
sudo dd if=kali-linux-*.iso of=/dev/sdX bs=4M status=progress
Replace
/dev/sdX
with your USB device (⚠️ Be careful — this will erase it).
Make sure to verify your USB device using:
lsblk
or
sudo fdisk -l
kali-local
)ip a
Edit /etc/network/interfaces
or use netplan
depending on your setup. Example for interfaces
:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 1.1.1.1 8.8.8.8
Restart networking:
sudo systemctl restart networking
sudo apt update
sudo apt install -y openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl status ssh
ssh user@localhost
2222
→ internal 22
on 192.168.1.100
(your Kali box)# Change default SSH port (optional)
sudo nano /etc/ssh/sshd_config
# Port 2222
# Disable root login via SSH
PermitRootLogin no
# Use key-based authentication (recommended)
ssh-keygen -t ed25519
ssh-copy-id user@your-public-ip -p 2222
# Restart SSH
sudo systemctl restart ssh
sudo apt install ufw
sudo ufw allow 2222/tcp
sudo ufw enable
sudo apt install fail2ban
sudo systemctl enable fail2ban
From another device or external network:
ssh user@your-public-ip -p 2222
sudo apt update && sudo apt upgrade
sudo journalctl -u ssh
sudo cat /var/log/auth.log
This guide is for educational and ethical use only. Always obtain permission before scanning or testing any systems you don’t own.