If you don't know, SSH into the iPhone is also possible over USB cable and this comes handy in cases when the iPhone for some reasons, can not be connected to the WiFi network. So, I will explain the procedure to SSH into the iPhone over USB.
Steps to SSH into iPhone through USB Cable (windows):
A. Install OpenSSH from Cydia . B. Download Python 2.7 and install it to c:\python27 folder (see download link at the end of TuT). C. Download usbmuxd by Hector Martin, extract it to C drive using winrar or 7zip (see download link at the end of TuT). D. Connect the iPhone to windows machine over USB cable.
E. Go to usbmuxd-1.0.8 folder (previously placed on C drive), then click Shift + Right Click and select "Open command window here".
F. Type the below commands.
1- cd python-client
2- \Python27\python.exe tcprelay.py -t 22:2222
Then you will receive this message: "Forwarding local port 2222 to remote port 22"
G. Download putty and open it.
H. On putty, enter Host Name as 127.0.0.1 and Port as 2222. Select connection type as SSH and click Open.
I. Now you are connected to your iPhone over SSH without requiring a WiFi network .
J. Finally, type the username as root and the password as alpine to log into the iPhone and you're done!
Note: Usbmuxd is a python module. So it works in Mac OS and other platforms as well. But the only limitation is, we can open only one SSH connection at a time.
Download links:
Python 2.7.10 (just download "Windows x86 MSI installer") https://www.python.org/downloads/release/python-2710/
usbmuxd https://www.dropbox.com/s/mmaqca0jysfmu5i/usbmuxd-1.0.8.tar?dl=0
See ya...