From charlesreid1

(Replaced content with "To run SSH on boot on the Raspberry Pi: {{KaliFlag}} {{PiFlag}}")
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To run SSH on boot on the Raspberry Pi:
=SSH To-Do=


There are a couple of SSH-related things you should do post-install for your Kali 2.0 Raspberry Pi. These steps are covered in the "Fix SSH" section of the Kali Raspberry Pi post-installation procedure: [[Kali Raspberry Pi/Post-Install#Fix SSH Keys]]
=Fix SSH To Run On Boot: Procedure=
First, your SSH server should be installed. If not,
<pre>
apt-get install openssh-server
</pre>
Second, revert to SSH defaults, which will run SSH on boot:
<pre>
update-rc.d -f ssh remove
update-rc.d -f ssh defaults
</pre>
On a fresh Kali install, replace the SSH keys that come with the image, as these are easy to spoof:
<pre>
cd /etc/ssh/
rm ssh_host_*
</pre>
Finally, make new SSH keys:
<pre>
dpkg-reconfigure openssh-server
</pre>
=Startup Services In General=
If you want to run any startup service, not just SSH, read on: [[Kali Raspberry Pi/Startup Services]]


{{KaliFlag}}
{{KaliFlag}}
{{PiFlag}}
{{PiFlag}}

Latest revision as of 02:25, 18 January 2016

SSH To-Do

There are a couple of SSH-related things you should do post-install for your Kali 2.0 Raspberry Pi. These steps are covered in the "Fix SSH" section of the Kali Raspberry Pi post-installation procedure: Kali Raspberry Pi/Post-Install#Fix SSH Keys

Fix SSH To Run On Boot: Procedure

First, your SSH server should be installed. If not,

apt-get install openssh-server

Second, revert to SSH defaults, which will run SSH on boot:

update-rc.d -f ssh remove
update-rc.d -f ssh defaults

On a fresh Kali install, replace the SSH keys that come with the image, as these are easy to spoof:

cd /etc/ssh/
rm ssh_host_*

Finally, make new SSH keys:

dpkg-reconfigure openssh-server

Startup Services In General

If you want to run any startup service, not just SSH, read on: Kali Raspberry Pi/Startup Services