X11 Forwarding Mac

This tutorial is going to cover setting up X11 forwarding via SSH from your Kali box to your Mac.  This is a great way to host your Kali machine on a server (Home Server or VPS) and still have access to tools like Burp that require a GUI.

First thing you will need to do is download and install XQuartz from http://xquartz.macosforge.org/landing/

Next we need to enable the ssh server service.

Screen Shot 2014-10-03 at 1.32.17 PM
Lets make sure we know the IP of our machine.  This is my internal lab machine so the IP is non routable, but if you had this going through a firewall you would obviously need to forward SSH to your Kali box before trying to SSH to your external IP address.

Screen Shot 2014-10-03 at 1.34.00 PM

Now for the fun stuff! All you have to do from your mac is:

ssh -X root@<kalibox IP>

Screen Shot 2014-10-03 at 1.35.05 PM
You will see XQuartz start in your dock

Screen Shot 2014-10-03 at 1.35.17 PM

and you will have a Kali root shell in your Terminal

Screen Shot 2014-10-03 at 1.35.25 PM
From here all you have to do is execute the program you want to run.  Note that I use a & sign after the command so it runs in the background and does not tie up my shell.  You can also SSH in multiple times if you need more then one shell.  I choose to run Terminator which allows me to split my terminal window into many window’s.

Running Terminator:

Screen Shot 2014-10-03 at 1.36.53 PM

Screen Shot 2014-10-03 at 1.37.06 PM
Running Burp Suite:

Screen Shot 2014-10-03 at 1.38.00 PM

Screen Shot 2014-10-03 at 1.38.43 PM

That is all!  Pretty easy setup but I thought it was cool, and worth covering.

-Justin (Eagle11)


1 thought on “X11 Forwarding Mac

Leave a Reply

Your email address will not be published. Required fields are marked *