SSH (and SFTP and tethering) over USB for MacOSX

Discussion in 'iPod touch' started by iolsmit, Apr 29, 2009.

  1. iolsmit

    iolsmit New Member

    Joined:
    Apr 23, 2009
    Messages:
    13
    Likes Received:
    0
    Device:
    2G iPod touch
    After looking for quite some time I found this in another forum:
    iPhoneTunnel, which allows you to connect to the iPhone or iPod touch via SSH over USB

    Please Register or Log in to view images



    iPhoneTunnel for MacOSX web.me.com/novi.mad/page2/page2.html

    This is the equivalent to the "iPhone Tunnel Suite" that is for Windows
    There seems to be a solution for Linux, too - but I didn't test that one iTunnel for Linux
    www.cs.toronto.edu/~jingsu/itunnel (copy&paste, link doesn't work because of the tilde "~")


    For all the requirements on the iPod touch or iPhone and on your PC/Mac check out these posts:
    SSH
    How To SSH With iPhone Tunnel Suite (No Wifi)
    TUTORIAL: SSH via USB

    Now you can finally have the full SSH (and SFTP) power via USB-cable on Mac OS X - isn't that sleek ?!

    Please Register or Log in to view images



    If you don't know or care what SSH or SFTP is then just don't bother

    Please Register or Log in to view images



    (S)FTP clients for MacOSX
    www.pure-mac.com/ftp.html

    Edit: The link for the Linux version was not working when I wrote this post using Opera on Mac OS X, so I made a tinyurl and now I had to see that -when clicking it - you get:

    Please Register or Log in to view images

    This link has been posted without permission and/or is not in accordance with our official rules or off-site linking policies.
    Sorry, you may not proceed.

    Please Register or Log in to view images


    Then I changed the post with Firefox under Windows using the original link (tinyurl was dh3h5m - just if you wanna check) but it still didn't work, seems to be a problem with the tilde "~"

    Please Register or Log in to view images


    In the end it luckily worked using Safari (MacOSX) so I didn't have to try IE

    Please Register or Log in to view images




    Edit2: Now it's messed up again - I don't get it...
    I included the url for the Linux version for copy&paste
  2. iolsmit

    iolsmit New Member

    Joined:
    Apr 23, 2009
    Messages:
    13
    Likes Received:
    0
    Device:
    2G iPod touch
  3. metaclam

    metaclam New Member

    Joined:
    Aug 6, 2008
    Messages:
    3
    Likes Received:
    0
    SSH via USB on iPhone 3.0

    I read in passing in a comment on the dev team blog that this will not work with OS 3.0 and furthermore, someone said that if you try you will ruin the jailbreak and have to restore the phone. (Cannot find this now.) I'd like some clarification on this, please.

    Also I would like to know if the obstacle is the USB connection itself. What would happen if you ran the commercial application DiskAid (for Mac/PC) with its companion iPhone app, FileAid?

    The author of iPhone Tunnel 2.0 for the Mac has a blog in Japanese. Running that through Google Translate, it appears to say it has something to do with the new tethering (TEZARINGU ;-) and that:

    What does this all have to do with the DevTeam?
  4. phonique

    phonique New Member

    Joined:
    Dec 5, 2009
    Messages:
    1
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    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://[PIRACY.rs].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:
    further:
    Drop Héctor Martín Cantero a line saying thanks for those <finishing touches> here: hector@marcansoft.com

    Enjoy!

    Tested and confirmed working on 10.6.2 and iPhone 3.0-JB.

Share This Page