Skip to content

Instantly share code, notes, and snippets.

@autarch
Last active October 14, 2015 22:17
Show Gist options
  • Select an option

  • Save autarch/681639abe3462b9dfc02 to your computer and use it in GitHub Desktop.

Select an option

Save autarch/681639abe3462b9dfc02 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -x
ssh -T -C -R5900:localhost:5900 ct4-test.prv &
sudo iptables -A INPUT -p tcp --dport 5900 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 5900 -j ACCEPT
x11vnc -clip xinerama0 -localhost -nopw -once
sudo iptables -D INPUT -p tcp --dport 5900 -j ACCEPT
sudo iptables -D INPUT -p udp --dport 5900 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment