Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Monday, September 22, 2008

Start VNC on Mac via SSH

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -clientopts -setvnclegacy -vnclegacy yes -setvncpw -vncpw [NEW PASSWORD] -restart -agent


port forward localhost 5433 to redflag 5432 to tunnel postgres connection

ssh -L 5433:localhost:5432 jesses@redflag.funnygarbage.com


piggy back port forward through intermediary box

This will take port 2222 on your local host and terminate it at 22 on ultimate_destination_host_ip via
your ssh tunnel to intermediary_host_ip

ssh -L 2222:ultimate_destination_host_ip:22 intermediary_host_ip -l username_common_to_both_hosts