Use PuTTY to Connect to iPhone on Windows by SSH
August 11th, 2007
Before this post, I tried WinSCP as the SSH client mentioned by How to install Secure Shell (SSH) in HackTheiPhone. At the first time, it did works. But later when i wanna try to run some hacks, WinSCP can never connect to iPhone any more. Here’s what it says all the time:
I decide to find a replacement.
I googled around and soon i found one called by PuTTY created by Simon Tatham. “PuTTY (the Telnet and SSH client itself) ” — Download Link(444KB).”
After downloading, I connect my iPhone with my laptop(IBM-T40, Windows XP Sp2). Then I launched PuTTY. After typing into my iPhone’s ip address, PuTTY soon found my iPhone and asked for user and password. I gave them to it and then it immediately connected to iPhone successfully. And here’s the screenshot:
Cool, isn’t it?!
Update: For some reason, WinSCP works now. One more choice, isnt’ it
Update(Dec.25,2007): When you cannot connect with iphone via WinSCP, please double check:
1. if you enter iphone’s IP address correct or not
Sometime, for my own experience, the IP from Settings->Wifi is NOT CORRECT. I have to get the right one from my router’s client connection list.
2. if iphone’s SSH Server is running or not
Most of time it is running, if you don’t do too much to your iphone. Anyway, you can check by this cool application - sysInfo.
Update(Mar.26,2008): get your exact iphone’s IP address by running ifconfig under Term-v100 or Putty. If WinScp cannot connect to the iPhone for the first time, give it another try. Sometime it’s caused by the time SSH uses to generate the key beyoned the default time Winscp uses to establish the connection. The second try will fix it.

August 11th, 2007 at 9:13 am
[...] the SSH client in the above picture is PuTTY. See my last post for [...]
August 19th, 2007 at 12:21 am
[...] ‘password‘ under command window. Either use PuTTY, or [...]
September 13th, 2007 at 6:08 am
for somereason when putty asked me to enter the username and password, i can enter “root” but when it ask for the password, i cant type it in… why?!
September 13th, 2007 at 6:21 am
putty will not display any characters like **** to show that you are typing something. Perhaps that’s why you got confused.
Just enter the right password and press Enter.
September 29th, 2007 at 3:24 am
How add your article to digga.se?
October 25th, 2007 at 11:34 pm
[...] the .idx and .dict files to iPhone’s /var/root/Library/weDict/ by WinSCP or [...]
October 25th, 2007 at 11:34 pm
[...] the .idx and .dict files to iPhone’s /var/root/Library/weDict/ by WinSCP or [...]
December 15th, 2007 at 7:44 am
Ok, here I am… I got the putty, I got the wireless connection… but, where can I get the pass??? I never set up one… so I don’t know what to put… please help me with this… I’m stuck and don’t know where to start… I have a 1.1.2 OOB week 47 iPhone
Thanks
Nakram
December 15th, 2007 at 12:01 pm
I don have a 1.1.2 ff, so not tried the pwd myself. But if you never changed the default version, it should be this:
“root/dottie is for 1.0.2 and root/alpine is for 1.1.1 & 1.1.2.”
from here(http://www.hackint0sh.org/forum/showthread.php?t=1323)
Take a try yourself. any questions, just keep posting or email to me.
Good luck.
February 4th, 2008 at 3:56 pm
[...] permission to 4755 will fix it. You can make it either by WinSCP or other terminal client like Putty. As to the latter, here’s the command [...]
March 16th, 2008 at 9:48 pm
[...] And the fix is pretty easy, run chmod -R 777 /private/var/mobile/Library/Cookies on the iphone by Term-v100 or Putty. [...]
April 11th, 2008 at 9:14 am
[...] Windows, you could download Putty or WinSCP to do it. If you can install the Terminal v100 app on your iPod Touch, you could use that. [...]