SSH over USB using usbmuxd
Tested on OS X. Works on Windows too, according to the README
- Get usbmuxd source package and unpack
- Go into folder python-client
- chmod +x tcprelay.py
- Run ./tcprelay.py -t 22:2222
Now you can log into your device via ssh root@localhost -p 2222
The -t switch tells tcprelay to run threaded and allow more than one ssh over the same port.
See ./tcprelay.py --help for further options.
转自:http://www.iphonedevwiki.net/index.php/SSH_Over_USB