OpenSSH via a USB connection

Hopefully you've used the OpenSSH tutorial that employed Wi-Fi as a means of connecting to your iPhone. Now we will use SSH over a serial connection (your iPhone's USB sync cable). This is great if you are on the road and don't have access to a Wi-Fi network as you can still interact with your iPhone's file system. I came across this process in a thread over at the MacRumors forums. "-aggie-" detailed the process here in post 14. A big thank you goes out to him. The program that we will use is also linked from that post.






Step 1.

Download iPhoneSSH here. When you see the file on the left appear, double click it to decompress it and you'll have a folder.

iPhone




Step 2.

On your Mac go to your Applications folder, and then into the Utilities folder. Launch the Terminal.app program. You'll see a screen similar to this.

iPhone



In the terminal window type the letters   cd
Press the space bar once. Open the iPhoneSSH folder. Drag the python-client folder into the Terminal window.

iPhone



The path to that folder will now be added in the Terminal window.

iPhone



Press enter then type   python tcprelay.py -t 22:2222 &   Press enter. You should receive a reply message immediately.

iPhone




Step 3.

Launch YummyFTP (or any other FTP client). Click the Add button.

iPhone



Enter the following values. The password is alpine. Click Save.

iPhone



Double click the iPhone USB entry to make the connection.

iPhone



Your computer's file system is on the left, the iPhone's on the right.

iPhone



To change permissions on a file first select the file you want to modify, then click the gray arrow.

iPhone



A drawer will open. Click the i button.

iPhone



Your changes are made here.

iPhone




Alternate log in method

If you don't want to use a GUI then you can do everything using the Terminal. Once you've invoked tcprelay enter the following command: ssh -p 2222 root@localhost

iPhone







Return to top of page