SSH to iOS via USB cable

Source: Internet
Author: User

Download Usbmuxd


Download Usbmuxd from here and unzip to local. We need to use only the Python-client directory of tcprelay.py and usbmux.py two files, put them in the same directory, such as the author's

/Users/snakeninny/Code/USBSSH/

Using Usbmuxd
Usbmuxd is simple to use, enter in terminal

/Users/snakeninny/Code/USBSSH/tcprelay.py -t 远程iOS上的端口:本地OSX/Windows上的端口

To forward ports on the local osx/windows to ports on remote iOS, such as

/Users/snakeninny/Code/USBSSH/tcprelay.py -t 22:2222

The local 2222 port can be forwarded to the 22 port on iOS, so the direct

ssh root@localhost -p 2222

You can ssh to iOS.

    1. Examples of usage scenarios
      Completely out of WiFi, connect to iOS using USB, and debug springboard with Lldb.
      i) forward the local 2222 port to the 22 port of iOS

/Users/snakeninny/Code/USBSSH/tcprelay.py -t 22:2222

II) SSH in the past and use debugserver attach to Springboard

ssh root@localhost -p 2222debugserver *:1234 -a "SpringBoard"

III) forward the local 1234 port to the 1234 port on iOS

/Users/snakeninny/Code/USBSSH/tcprelay.py -t 1234:1234

IV) Start commissioning with Lldb

connect connect://localhost:1234

SSH to iOS via USB cable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.