Using OpenSSH on your iPhone you can browse iPhone files / folders from your computer. Using SSH client like WinSCP or Putty you can connect to the iPhone and copy files/folders easily. Lets see how to SSH into iPhone 4 on Windows. You can use this guide on other iPhone ver. 2G, 3G, 3GS as well.
How to SSH into iPhone
You must have an Jailbroken iPhone with SSH installed (see how to jailbreak iPhone 4)
Run Cydia from you iPhone
Tap “Search” tab.
OpenSSH and tap the “OpenSSH”search result.
Tap “Install” > “Confirm” button to start installation.
When installation finished successfully, tap big “Return to Cydia” button and then iPhone “Home” button to close the Cydia app.
Your Computer and iPhone must be connected to the same WiFi connection and you need to know the IP address of your iPhone.
Tap “Settings” icon on iPhone and then “WiFi” option.
Tap the blue arrow in front of WiFi connection that you are using.
Here you will see the “IP Address” of your iPhone, Note down this IP address.
Now on you computer, Download WinSCP, install and run it.
Enter the IP Address of your iPhone in “Host name” text box that you have noted down in step-7
root as a “User name” and
alpine as a “Password” in there respective text boxes and hit the “Login” button. Make sure your iPhone and computer are on the same wireless network.
This will start authenticating process and ask to save security key.
After few seconds WinSCP will show you the following directory of iPhone
/private/var/root. You can use the drop down and Up arrow folder icon to navigate into the iPhone contents.
When you jailbreak your iPhone and install OpenSSH then any one can access you iPhone system files and folders using the default user root and password. You must change root password to protect you iPhone.