Posts Tagged ‘winscp’

Use PuTTY to Connect to iPhone on Windows by SSH

Saturday, 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:

WinSCP Error

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:
PuTTY On iPhone

Cool, isn’t it?! :D

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.