Can't SSH into iPhone: PLEASE HELP

Discussion in 'Jailbreaks and iOS Hacks' started by legaleye3000, May 6, 2009.

  1. legaleye3000 macrumors 65816

    Joined:
    Jul 31, 2007
    #1
    I'm using Cyberduck and I chose SSH-FTP and I put in my IP address for the phone and under username: root, then alpine for pw. PLEASE HELP. It won't connect.
     
  2. Moi un Mouton macrumors 68000

    Joined:
    Mar 18, 2008
    Location:
    Bracknell UK
    #2
    I know it's a silly question, but is your phone jailbroken?
     
  3. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
    #3
    Yea- I was able to do it before and now I can't for some reason... Got openssh installed on the phone and I'm using Cyberduck on my mac. What's going on...!?

    I get an I/O error
     
  4. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #4
    What happens when you try using terminal? Did you clear out your known_hosts file in the /~.ssh directory?
     
  5. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
    #5
    I haven't tried terminal (don't know to really use it that much..).

    I'm trying to get access to the file/directories so I can copy a file from my desktop to the phone. I've done it a bunch of times before but can't do it.

    I put in my IP address, choose the FTP-SSH protocol, then put in the username (root) and pw (alpine). It defaults on port 22. Then when I try it says I/O error.

    I've tried both creating an ad hoc wifi network just between the computer and iphone and then trying it like normal on my main wifi network at home: DOESN'T WORK
     
  6. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #6
    Did you clear out your ~/.ssh/known_hosts file? Just trying to get a baseline to start from.

    Terminal is easy btw, open it and type: ssh root@ip_address. Let me know what messages you get after clearing the file and using terminal.
     
  7. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
    #7
    How do you clear the files? If the files are on the phone, I can't get access to them...

    Thanks
     
  8. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #8
    The file is on your Mac. You open it, delete all the text and save it. :)
     
  9. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
  10. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #10
    Post #6.
     
  11. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
    #11
    I don't understand where that is. I click on my HD, then in Users or System or what?
     
  12. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #12
    Press Shift-Apple-G, when it says Go to folder, type ~/.ssh. Open the known_hosts file and highlight all the text, if any, delete it, save and exit. Then try to ssh using terminal and let me know what messages come up.
     
  13. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
    #13
    I did that (there was stuff in the file) and I tried Cyberduck again and no luck... I don't know how to do it using terminal. Would that be any difference from Cyberduck though?
     
  14. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #14
    I just gave you directions how to use terminal above. *points up* Unfortunately I don't know anything about Cyberduck. I use terminal and sometimes Fugu. Maybe download Fugu and we can talk shop.
     
  15. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007
  16. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #16
    At least that points us in A direction. :)

    http://www.google.com/search?q=iphone+ssh+Connection+closed+by+remote+host

    Looks like perhaps the RSA key pairs don't match. One link above, the guy used Mobile Term I suppose to regenerate the keys on their iPhone. Some look like they also reinstalled OpenSSL along with OpenSSH. Others restored their phone to get working again. I'd say the easiest to try is option 2 then go from there as appropriate. Good luck!
     
  17. legaleye3000 thread starter macrumors 65816

    Joined:
    Jul 31, 2007

Share This Page