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.
- 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