Skip to content

Instantly share code, notes, and snippets.

@blech
Created February 13, 2009 13:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save blech/63898 to your computer and use it in GitHub Desktop.
Save blech/63898 to your computer and use it in GitHub Desktop.
SSH tunnel w/Rendezvous
# posted partly as an aide-memoire, but more usefully, as a prompt
# for me to make this into a proper stop-start daemon
# hopefully, one that won't have hardcoded machine names...
IPADDR=`ifconfig en0 | grep 'inet ' | awk '{print $2}' | sed 's/addr://'`
ssh house.husk.org -N -f -L *:3698:foil:3689
dns-sd -P "foil" _daap._tcp. local 3698 foil.local. $IPADDR txtvers=1 "Database ID=BC2C8AD5" "Machine ID=BC2C8AD5" &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment