From charlesreid1

This is a step-by-step walkthrough of connecting to a headless Raspberry Pi running Kali 2.0 by connecting to the pi via a crossover cable.


  • 1 laptop/desktop running Mac/Linux/Windoze
  • 1 Raspberry Pi
  • 1 Cat6 ethernet cable
  • 1 mini-usb power cable

Step 1: Ethernet Connection

Plug in the ethernet cable from the Pi to your laptop.


Then plug in the Raspberry Pi power cord.


The Pi should begin with a red light, then switch to red, green, and yellow lights.

Give the Pi and your laptop a minute to communicate. Your computer will assign a link-local IP address in the namespace 169.254.X.Y.

Step 2: IP Address

Open a command prompt on your laptop. Use the ifconfig command (or ipconfig from Windoze) to look at the IP address of each network device. In this case, I have an ethernet port (en0) and a wireless card (en1):

$ ifconfig


	ether q8:pt:z8:zf:fg:t1
	inet6 fz80::zzbc:z9ff:fe9f:a6c1%en0 prefixlen 64 scopeid 0x4
	inet netmask 0xffff0000 broadcast
	nd6 options=1<PERFORMNUD>
	media: autoselect (100baseTX <full-duplex,flow-control>)
	status: active

The key here is that my computer has automatically picked out the IP address for its own link-local IP address. Pay attention to the THIRD part of the IP address.

Step 3: Hard Code IP Address

Now you can shut down the Pi by unplugging the power cable, and insert the SD card into your laptop.

Edit the boot line by modifying the file cmdline.txt on the boot partition of the SD card. Add an IP address to the end, that matches (to the THIRD part) the IP address that your laptop automatically picked out for the link-local IP address. In the case above, the IP address space is 169.254.248.X, so I hard-code an IP address in that space for the Pi in cmdline.txt.

The last number is arbitrary, the only limitation is that it cannot match the IP address of the laptop.

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait ip=



Step 4: Ping the Pi

Plug the Pi back in, both to your ethernet port and to power.

Once the Pi has come back online and all lights are flashing, ping the Pi at its hard-coded IP address:



Step 5: SSH to the Pi

Now you should be able to SSH to the Pi:

ssh root@


Step 6: Post-Install

Don't forget the post-install procedure:

Kali Raspberry Pi/Post-Install