Skip to content

Instantly share code, notes, and snippets.

@noah95 noah95/
Created Feb 9, 2018

What would you like to do?
# Outside port to be openned for incomming ssh connections
# Host Name and Port of the announce destination using SSH
curl -s | ssh outpost@$HOST -p$HOST_PORT "cat > ~/outpost_ip.txt; echo ":$PORT" >> ~/outpost_ip.txt"
# Make sure port is forwarded
upnpc -a `ifconfig | sed -En 's/;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'` 22 $PORT TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.