Difference between revisions of "ARDOverSshForwardScriptExample"

From Wurst-Wasser.net
Jump to: navigation, search
Line 7: Line 7:
 
  # History:
 
  # History:
 
  #2005-10-10, 09:21: ARD forward!
 
  #2005-10-10, 09:21: ARD forward!
 +
#2006-01-27, 21:00: Hmm, doesn't work anymore. (Thanks Brian for pointing out)
 
  #
 
  #
 +
# Notes:
 +
# Must be run as root. Please start the script with ''sudo doardforward.sh''
 +
#5900 TCP: Observe/Control
 +
#5900 UDP: Send Screen
 +
#3283 TCP: Reporting
 +
#3283 UDP: Everything else
 +
#5988 TCP: WBEM if enabled
  
 
:open <nowiki>/Applications/Remote\ Desktop.app</nowiki> &
 
:open <nowiki>/Applications/Remote\ Desktop.app</nowiki> &

Revision as of 22:01, 27 January 2006

#!/bin/tcsh
#
# Filename: doardforward.command
# Author: Heiko, as usual.
# History:
#2005-10-10, 09:21: ARD forward!
#2006-01-27, 21:00: Hmm, doesn't work anymore. (Thanks Brian for pointing out)
#
# Notes:
# Must be run as root. Please start the script with sudo doardforward.sh
#5900 TCP: Observe/Control
#5900 UDP: Send Screen
#3283 TCP: Reporting
#3283 UDP: Everything else
#5988 TCP: WBEM if enabled
open /Applications/Remote\ Desktop.app &
sleep 10
kill -1 `ps -wwwaux | grep ARDAgent.app | grep -v grep | awk '{printf $2}'`
kill -1 `ps -wwwaux | grep AppleVNCServer.bundle | grep -v grep | awk '{printf $2}'`
sleep 2
ssh -L 3283:remotehostethernetip:3283 -L 5900:remotehostethernetip:5900 user@remotehost