How to enable SSH and login via SSH on your iPhone
First, you need to install "
OpenSSH" from Cydia and reboot the phone.
Secondly, you need to grab
WinSCP and install it..
Once you have done that, go to
Wi-Fi settings on your iPhone and click the blue
> arrow next to the Wi-Fi AP you are connected to. Take note of the "IP Address".
e.g. 10.0.0.2
Fire up WinSCP and you will be presented with a screen like
this
Under "
Host Name:" enter the IP Address (10.0.0.2 in my case)
Under "
User name" enter "root"
Under "
Password" enter "alpine"
Click Save if you wish to save the information.
Then click "
Login". This usually takes a few minutes the first time to generate keys.. It will seem as if nothing at all is happening, but it is

Just wait till you are presented with a dialog
as such:
Be sure to click "
Yes"
Now you should see the iPhone file system on the right of the screen, and your PC file system on the left of the screen
It should look something like
this
NOTE: If your iPhone locks, all data transfers are put on hold.. I suggest setting Auto-lock to never when you are using SSH
NOTE2: Your iPhone IP address usually changes, so if you are having problems logging in, check to see if the IP address hasn't changed in Wi-Fi settings