Difference between revisions of "SSH Over USB"

From iPhone Development Wiki
Jump to: navigation, search
(Theos usage: these are environment-specific, not project-specific)
(linking alternate package)
Line 9: Line 9:
 
You will need to have Python installed on your system.
 
You will need to have Python installed on your system.
  
* Get [http://marcansoft.com/blog/iphonelinux/usbmuxd/ usbmuxd] source package and unpack
+
* Get [http://marcansoft.com/blog/iphonelinux/usbmuxd/ usbmuxd] source package and unpack. (Or if the linked usbmuxd package doesn't work, try [http://cgit.sukimashita.com/libusbmuxd.git/ libusbmuxd].)
 
* Go into folder python-client
 
* Go into folder python-client
 
* chmod +x tcprelay.py
 
* chmod +x tcprelay.py

Revision as of 07:12, 8 June 2014

Languages: English • françaisไทย

SSH over USB using usbmuxd

With Python

Tested on OS X and Windows.

You will need to have Python installed on your system.

  • Get usbmuxd source package and unpack. (Or if the linked usbmuxd package doesn't work, try libusbmuxd.)
  • Go into folder python-client
  • chmod +x tcprelay.py
  • Run ./tcprelay.py -t 22:2222

Now you can log into your device via ssh mobile@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.

Without Python

  • Download the zip file from OS X or Windows (32 bits).
  • Unzip to a directory of choice.
  • Run path/to/itunnel_mux.exe --lport 22 --iport 2222

Connect to localhost as you would over wifi.

SSH over USB using the iFunBox GUI (Windows only)

This feature only exists in the Windows build of iFunBox.

  • Get the latest Windows build of iFunBox and install it.
  • Click on "Quick Toolbox," then "USB Tunnel."
  • Assign ports as you see fit.

Theos usage

Export the following variables in your shell in order to deploy builds to the connected device:

export THEOS_DEVICE_IP = 127.0.0.1

export THEOS_DEVICE_PORT = 2222