Kali Raspberry Pi/Post Install: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
More info about all-things Kali Linux: [[Kali]] | More info about all-things Kali Linux: [[Kali]] | ||
An older post-install procedure is given here: [[RaspberryPi/First_Steps]] | |||
=Post-Installation Procedure= | =Post-Installation Procedure= | ||
Revision as of 20:06, 17 January 2016
This is a guide to connecting to a headless installation of Kali Linux on a Raspberry Pi. General info about running Kali on the Pi here: Kali Raspberry Pi
More info about all-things Kali Linux: Kali
An older post-install procedure is given here: RaspberryPi/First_Steps
Post-Installation Procedure
The post-installation procedure that will be covered by the guide includes:
- update and install software
- set startup services
- set configuration for programs
Software Update
Kali uses aptitude as a software manager. Update all your packages, and upgrade your distribution:
apt-get update apt-get -y dist-upgrade
Install Pi Toolbox
apt-get install vim apt-get install
Fix SSH Keys
OpenSSH server should be installed, but if it isn't:
apt-get install openssh-server
Remove any existing startup SSH service, and set the SSH service to run at SSH's default runlevel (that is, to run on boot):
update-rc.d -f ssh remove update-rc.d -f ssh defaults
Next you will want to replace the default SSH keys provided on the SD card image. Move the old SSH keys somewhere else:
cd /etc/ssh/ mkdir insecure_original_default_kali_keys mv ssh_host_* insecure_original_default_kali_keys/
And finally, make new SSH keys for this machine.
dpkg-reconfigure openssh-server
Non-Root User
No need to SSH as root, risking a total hijacking of the Pi. Make a non-root user who can sudo:
useradd charles adduser charles sudo
Print info:
id charles
Next, disable root login via SSH.