Use PuTTY to Connect to iPhone on Windows by SSH

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.

Tags: , , , , , , ,

17 Responses to “Use PuTTY to Connect to iPhone on Windows by SSH”

  1. Cui - A Nerd Trying To Be A Geek » Tutorial:How To Skip iPhone Activation on Windows Says:

    [...] the SSH client in the above picture is PuTTY. See my last post for [...]

  2. Cui - On My Way » Blog Archive » Reset Password for iPhone Says:

    [...] ‘password‘ under command window. Either use PuTTY, or [...]

  3. john Says:

    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?!

    [Reply]

  4. Cui Says:

    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.

    [Reply]

  5. buy levitra Says:

    How add your article to digga.se?

    [Reply]

  6. Add Your Local Language Dictionary to iPhone | Cui - On My Way Says:

    [...] the .idx and .dict files to iPhone’s /var/root/Library/weDict/ by WinSCP or [...]

  7. Add Your Local Language Dictionary to iPhone | Cui - On My Way Says:

    [...] the .idx and .dict files to iPhone’s /var/root/Library/weDict/ by WinSCP or [...]

  8. Nakram Says:

    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

    [Reply]

  9. Cui Says:

    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.

    [Reply]

  10. Cui - On My Way » Blog Archive » Fix: Customize Doesn’t Work On 1.1.2 Says:

    [...] 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 [...]

  11. Cui - On My Way » Blog Archive » iPhone 1.1.4 Fix: Safari Can’t Remember Password Says:

    [...] And the fix is pretty easy, run chmod -R 777 /private/var/mobile/Library/Cookies on the iphone by Term-v100 or Putty. [...]

  12. Seoulscapade » Blog Archive » Jailbreak iPod Touch 1.1.4 and Add an English-Korean Dictionary Says:

    [...] 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. [...]

  13. Cui - On My Way » Wiki2Touch On iPhone 2.1 Says:

    [...] to your computer, unzip it and then copy them to the phone by WinSCP(read my previous post here for more info) or your preferred [...]

  14. kat Says:

    it’s really col!!! Thank you so much

    [Reply]

  15. kat Says:

    it’s really coll!!! Thank you so much

    [Reply]

  16. Sarah Says:

    I think i resetted my pw, but I can’t remember it. Is there any way I can reset it back to the default as username: root and pw:alpine or dottie?

    [Reply]

    Cui Reply:

    @Sarah, until now what I can see is a fresh restore. sorry.. just don forget to sync before that.
    good luck.

    [Reply]

Leave a Reply