apt-get upgrade
apt-get dist-upgrade
These commands will update the Kali installer. The update and upgrade process takes a few minutes to complete. This is extremely important. If you want to establish a remote connection with your Kali Raspberry Pi, move on to the next section of the tutorial.
You don't want to plug the Raspberry Pi into Kali Linux to the screen every time you want to use it. But unfortunately that is not entirely practical.
Instead, you can install OpenSSH to allow them to connect and run commands on the remote device. You can complete this step in the tutorial, when the Raspberry Pi is connected to your screen (so you can see what you're doing).
Enter the following commands in the terminal to install the OpenSSH server:
apt-get install openssh-server
update-rc.d -f ssh remove
update-rc.d -f ssh defaults
Next, you need to remove the default encryption key. Since they are the default keys, they represent vulnerabilities that are easy to remove. The following commands create a new directory to bring the old keys into, while creating a new set of SSH keys in the process.
cd / etc / ssh /
mkdir oldkeys
mv ssh_host * oldkeys
dpkg-reconfigure openssh-server
Now you need to configure SSH login information. Edit OpenSSH configuration file in nano:
nano / etc / ssh / sshd_config
Find the line:
PermitRootLogin without-password
Change into:
PermitRootLogin yes
Navigate the configuration data file using your arrow keys or mouse. Press Ctrl + O to save any changes and Ctrl + X to return to the terminal window. If the setting has been set to 'Yes', do not change anything.
You can now check if OpenSSH is working by using the following command:
sudo service ssh restart
update-rc.d -f ssh enable 2 3 4 5
If OpenSSH does not work, start it with the following command:
sudo service ssh start
Now, check out Kali Linux Raspberry Pi 3's Internet configuration by entering the following command:
ifconfig
Record the IP address of the Raspberry Pi 3 because you will need it now. If the ifconfig command does not display your Raspberry Pi, run the following command to ensure that network services are set up and running:
sudo apt-get install net-tools
Then run the ifconfig command and copy the IP address of the Raspberry Pi.
When you log in to the Raspberry Pi 3 running Kali Linux with OpenSSH, you will get a banner ' Message of the day ' (MOTD). You can edit it to display a personalized message.
You can write a very basic welcome message or illustrate hacker login information with Ascii images, through this editing step. Be creative as you like!
When you're done, use the following command to enter the MOTD custom screen:
nano / etc / motd
Copy and paste your message, then save and exit by pressing Ctrl + O , then press Ctrl + X.
Finally, you need to check if your SSH login is working. To do this, you need a SSH Client. Microsoft has added OpenSSH support to Windows 10 in Windows 10 April 2018 update, which means you no longer need a third-party SSH client to connect to an SSH server.
Press the Windows + I key, then go to Apps> Manage optional features . Scroll down to this list and select OpenSSH Client. If it is not there, scroll up and select Add a feature , locate OpenSSH Client and then click Install. The installation process takes only a little time.
Next, press Windows + X key, then select Command Prompt (Admin) from the source menu. The OpenSSH client already works, so type the following command and add the IP address copied from Raspberry Pi to:
ssh root @ [your IP address]
Press Enter, then enter your password (still toor unless you change it). Your MOTD will welcome you into Kaspberry Linux Raspberry Pi!
Now that you have started and run with your Kali Linux Raspberry Pi 3, you can start to learn more about Ethical Hacking using the myriad of tools available in the operating system.
Just remember that you should only practice hacking on a home network, on devices that you own and can legally break into. If not, you could become a hacker breaking the law.
See more: