Monday 28 January 2013

iOS SSH over USB


Introduction:

Many a times, at client side we are not provided with Wifi access and connecting to our iOS device to read local data can be a real pain. At such a period, we can use a tool called as “usbmuxd” to connect to the Jailbroken iOS device running OpenSSH over the USB.

Detailed Steps:

Step 1: Make sure you have python installed on your machine. Download latest copy of “usbmuxd” using the command “git clone http://git.sukimashita.com/usbmuxd.git”.


Step 2: Navigate to the “python-client” folder and run the command “chmod +x tcprelay.py” and then run the tool using the command “./tcprelay.py -t 22:2222”


The “t” basically allows multiple threads to run so that multiple simultaneous ssh connections can be established.

Step 3: Now, once the tcprelay starts its work, we use the command “ssh root@localhost -p 2222” to forward the local port 2222 to remote port 22. Use the credentials “root/alpine” to connect to the OpenSSH server running on the device.


Now, all the commands which can be used over SSH can be run on the prompt provided. 

References:




13 comments:

  1. For windows, you can make use of "iTunnelMux".
    Syntax:
    C:\>itunnel_mux.exe --lport 22

    ReplyDelete
  2. Is the reverse possible ? Can the device connect to ssh on pc over usb ?

    ReplyDelete
  3. I do really appreciate this useful tutorial for Apple users, I also want to share this simple device, yet helpful called Sandisk iXpand for Apple Devices which adds extra space to your memory.

    ReplyDelete
  4. The installation of a new connection may have some difficulties. However, this will be made easier with the help of available data that can be obtained through the dissertation writer.

    ReplyDelete
  5. This is not only your problem, but also the problem of most people who will now definitely use the same solution that you published there.

    ReplyDelete
  6. Great advice! I couldn't find this in tutorials for a long time. Now I understand me mistake. Is it possible to connect the device to ssh on PC over USB?

    ReplyDelete
  7. This is a topic that is near to my heart... Cheers! Where are your contact details though?
    Drake Net Worth
    Dana White Net Worth
    Chris Brown Net Worth
    Ice Cube Net Worth

    ReplyDelete
  8. I’m very pleased to uncover this great site.
    I need to thank you for your time just for this fantastic read!!
    I definitely liked every bit of it and i also have you saved to fav to
    see new information on your website.
    온라인카지노

    ReplyDelete