Limited Edition iPhone header image

Guide: WinSCP Will Not Connect Network Error: Connection Timed Out

March 30th, 2009 by Limited Edition iPhone · 13 Comments

WinSCP Guide iPhone

You may also need to take these steps if you get the message: WarningPotential security breach!

Windows Users:

WinSCP Portable executable
Look for the file “winscp418.ini” located in you WinSCP directory.
Find [SshHostKeys].
Then look for the line that starts with rsa2@22:then has your current iPhone IP Address.
Delete that line and save.
Now try to log in again and accept the new key. You can follow the directions here:
WINSCP GUIDE FOR IPHONE

WinSCP Installation package
BE VERY CAREFUL. READ AND REREAD BEFORE YOU DO ANYTHING. MESSING WITH THE REGISTRY CAN SCREW UP YOUR COMPUTER IF YOU DO SOMETHING WRONG
Click Start
Click Run
Type regedit and then hit return
Navigate to: [HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\SshHostKeys]
Delete only the line that says: rsa2@22:your iPhone’s iP Address
Now try to log in again and accept the new key. You can follow the directions here: WINSCP GUIDE FOR IPHONE

Mac users having trouble with SSH:

Launch Terminal and type “open /Users/username/.ssh/known_hosts”
Then look for the line which has your current iPhone IP Address along with ssh-rsa and ends in “==”
Delete that line and save the file.
Now try to log in again and accept the new key.

Tags: ·······

13 Comments so far ↓

  • 1

    alice

    i have the connection problem. i followed the direction you posted. but i can’t find “SshHostKeys”. i can only find [HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2]. can you please help me? i’m using vista. thank you very much

  • 2

    landry

    I had a connection problem with WinSCP, but realized I had the file protocol set as SFTP instead of SCP. changing this enabled me to connect to the phone.

  • 3

    Sam

    RE: “alice // Apr 1, 2009 at 3:16 am

    i have the connection problem. i followed the direction you posted. but i can’t find “SshHostKeys”. i can only find [HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2]. can you please help me? i’m using vista. thank you very much”

    I have the exact same issue. Does anyone know how to remove the key in vista?? I have vista 64-bit????

  • 4

    Limited Edition iPhone

    Sam it should still be there click on WinSCP 2

  • 5

    Limited Edition iPhone

    also have you guys been able to connect before?

  • 6

    Sam

    sorry it wasn’t there cause i was able to connect before and it just turned out to be my sh*t house LINKSYS ROUTER which needs to be power cycled all the time to get my home network to find all the connected devices properly.

  • 7

    steveeeee

    im having the same problem that folder is not in the registry im on win xp winscp 4.19

  • 8

    Tendera

    Having the same problem, can’t find the SSHhostKeys folder. Not sure why.

  • 9

    Micky

    Same problem here. running 421 on Vista. Can’t find the ini or the folder. iphone has power, but won’t connect.

  • 10

    Anne

    I have the same problem, and i’m going crazy here. Why isn’t the file “SshHostKeys” there? Should you right click and then chose to create a new key? would that work? don’t wanna mess with my computer if it’s anywzy useless, so i ask. Please send me help, i really want this to work…!
    Thanks…!

  • 11

    Rob

    I have used openssh and winscp until yesterday. I screwed up and deleated the partial file by mistake and replaced it with ifile. My Cydia is completely screwed up also. Anyway, now the winscp does not connect. Either does any other similar program. I tried the solution above, but could never get to the “SshHostKeys” .
    Thanks

  • 12

    mi

    I got the same problem and editing the «SshHostKeys» did not helped me.

    Then I cleared all my previous WinSCP data concerned with the iPhone (register records, winscp info). Next, created a new connection with the iPhone (in WinSCP). Finally, it (suddenly) begun to work.

    So, the suggestion — _remove all previous iPhone connections in the WinSCP_.

    Thanks guys.

  • 13

    Mansour

    hi all,

    Actually there is one step missed here. you need to install openSSH application. then use WINSCP as mentioned on this website, you will able to connect. you didn’t find the SSHhotkeys in the registry cause you don’t have openSSH application installed on your iphone.
    Thanks

Leave a Comment