-
Notifications
You must be signed in to change notification settings - Fork 13
Kali‐RPI4 X11 forwarding
reubenajohnston edited this page Apr 13, 2025
·
1 revision
Note: we are assuming that the Kali-RPI is in good state (i.e., was rebooted by the previous user!)
- SSH into Kali-RPI with X11 forwarding enabled
$ ssh -X <HOSTNAME>.netsec.isi.jhu.edu -l <USERNAME>@NETSEC.ISI.JHU.EDU
- Login via SSH with X11 forwarding using the command above
- Check your current X11 credentials on the raspberry pi by looking at the newest entry that was created when you logged in with
-X
$ xauth list | tail -1
- Test that X11 is working with your user
$ xeyes
- Login via SSH with X11 forwarding using the command above
- Get your regular user's current X11 credentials by running the xauth list command above
- Make sure there is a
/root/.Xauthority
file; if it is not there, create it using$ sudo touch /root/.Xauthority
- Check sudo (root) X11 credentials on the raspberry pi
$ sudo xauth list
- If the regular user's current X11 credentials are not in the sudo list, you need to add it
- To add them, run the following command
$ sudo xauth add $(xauth -f /netsec/home/$USER/.Xauthority list|tail -1)
- To add them, run the following command
- Test that X11 is working with sudo user
$ sudo xeyes