+ Reply
Results 1 to 2 of 2
  1. #1
    What's Jailbreak?
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post [HOWTO] SSH to iPhone over USB for OS X

    I'm not sure if this is the right forum, but here we go.
    Until novi's iphone tunnel works again...
    (Obviously, works only if you have SSH or another server installed on your iPhone/iTouch.)

    1. Download iPhoneSSH.tar.bz2 (~25KB) from here:
    http://rapidshare.com/files/316653216/iPhoneSSH.tar.bz2
    (MD5: 9cd9253f1170587bc00d9f87e12402d8)
    or
    Download the latest usbmuxd distribution from here:
    Abort, Retry, Hack? usbmuxd
    2. Unpack to a convenient location (you just need the "python-client" folder if you downloaded the usbmuxd distribution)
    3. Open terminal, change directory to the python-client-folder and type:
    python tcprelay.py -t 22:2222 &
    (the -t is for threaded-mode, meaning that you will be able to open more than one session/forward more than one port (as shown below))
    4. Now open Fugu or another terminal session and connect to localhost @ port 2222 i.e. like this:
    ssh -p 2222 root@localhost

    Enjoy SSH over USB!

    Additional info in the author's words:
    [01:55] marcan:
    you can forward any ports
    [01:55] marcan:
    where the iPhone is the server, and the PC the client
    [01:56] marcan:
    if you want to do the opposite, you could use socat to reverse the client/server roles or just use ssh forwarding/reverse forwarding (which will be slower though, due to the encryption)
    [...]
    [01:57] marcan:
    also, TCP only of course
    further:
    [01:52] marcan:
    you can also add other ports
    [01:52] marcan:
    such as ./tcprelay.py -t 22:2222 5900 &
    [01:52] marcan:
    which will forward VNC
    [01:52] marcan:
    (if you have veency installed on the phone)
    [01:35] marcan:
    most of the dirty RE work was done by others, re: the hash
    [01:35] marcan:
    I just put some of the finishing touches on
    Drop Héctor Martín Cantero a line saying thanks for those <finishing touches> here: [email protected]

    Enjoy!

    Tested and confirmed working on 10.6.2 and iPhone 3.0-JB.
    Last edited by phonique; 12-05-2009 at 07:02 AM.

  2. #2
    What's Jailbreak?
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Novi's iPhone Tunnel just got updated (kind-of).

    Grab your alpha-copy at:
    iphonetunnel-mac - Project Hosting on Google Code

    Don't expect too much

    Enjoy!

    Update: Beta version now available.
    Last edited by phonique; 12-12-2009 at 10:58 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts