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
in post 14.
A big thank you goes out to him. The program that we will use is also linked from that post.
When you see the
file on the left appear, double click it to decompress it and you'll have a folder.
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.
In the terminal window type the letters cd
Press the space bar once. Open the iPhoneSSH folder. Drag the python-client folder into the
The path to that folder will now be added in the Terminal window.
Press enter then type python tcprelay.py -t 22:2222 &
Press enter. You should
receive a reply message immediately.
Launch YummyFTP (or any other FTP client). Click the Add button.
Enter the following values. The password is alpine. Click Save.
Double click the iPhone USB entry to make the connection.
Your computer's file system is on the left, the iPhone's on the right.
To change permissions on a file first select the file you want to modify, then click the gray arrow.
A drawer will open. Click the i button.
Your changes are made here.
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