Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created August 2, 2008 02:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicksieger/3714 to your computer and use it in GitHub Desktop.
Save nicksieger/3714 to your computer and use it in GitHub Desktop.

Download and build connect.c

cd /tmp
curl -O http://www.meadowy.org/~gotoh/ssh/connect.c
gcc connect.c -o connect -lresolv
sudo mv connect /usr/local/bin

Add proxy command to ~/.ssh/config

Edit host:port as necessary

Host *
ProxyCommand connect -5 -S 192.168.1.1:1080 %h %p

Connect to your iPhone

ssh away! (Remember to comment out those lines in ~/.ssh/config when disconnecting.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment