Is OpenSSH Broken on iPhone 4?

Discussion in 'Jailbreaks and iOS Hacks' started by doctapeppa, Aug 4, 2010.

  1. doctapeppa macrumors 6502

    Joined:
    Jun 15, 2008
    #1
    I keep having to reinstall OpenSSH to get it to work.

    iMac:~ frank$ ssh root@xx.xx.xx.xx
    ssh_exchange_identification: Connection closed by remote host
    iMac:~ frank$

    I go to cydia and reinstall openSSH and I can get in, no problem. After a few minutes, when I try and connect again I get the same "connection closed..." error. Am I the only one getting this?

    Cyberduck gives me
    I/O Error: Connection failed
    sftp://root@xx.xx.xx.xx
    Premature connection close.


    Resetting network settings on the phone didn't work, rebooting router didn't work, using a different router didn't work. Deleting keys didn't work. Reinstalling SSL didn't work. Is this a known issue?

    Thanks
     
  2. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #2
    Worked fine on my i4.
    I connected using winscp.
     
  3. LSUtigers03 macrumors 68020

    LSUtigers03

    Joined:
    Apr 9, 2008
  4. -aggie- macrumors P6

    -aggie-

    Joined:
    Jun 19, 2009
    Location:
    Where bunnies are welcome.
    #4
    openSSH with CyberDuck works flawlessly for me. The only thing I have to make sure is the phone doesn't go to sleep, since it switches back to 3G. I also have a way to get in via USB however.
     
  5. Kabir8 macrumors regular

    Joined:
    Feb 3, 2010
    Location:
    LA
    #5
    Cyberduck wont let me connect using root/alpine.
    What should I do from here? I have all the prerequisites I am sure, everything turned on, correct spacing, cases, no extra characters, etc.

    Tried it about a dozen times, and nothing .
     
  6. lorax3 macrumors regular

    lorax3

    Joined:
    Jun 25, 2007
  7. avidtoker macrumors newbie

    Joined:
    Aug 21, 2010
    #7
    Having this issue as well - did you find the fix?
     
  8. Norcalchavo macrumors regular

    Joined:
    Sep 17, 2007
    Location:
    Santa Clara, California
    #8
    i'm on ip4, 4.0.1 and I was able to get access via WINSCP with no problems.
     
  9. esadb macrumors 65816

    esadb

    Joined:
    Nov 29, 2008
    #9
    getting same error here.. Nothing seems to work to get in with SSH...
     
  10. f4780y macrumors 6502

    f4780y

    Joined:
    Jul 21, 2009
    Location:
    Troon, Scotland
    #10
    I had similar problems, but found I had to reset my wireless router. That fixed it, it happened again a couple of days later, reset it again, and it's been fine since.
    Worth a try I think... Hope it helps!
     
  11. crawfish963 macrumors 6502

    crawfish963

    Joined:
    Apr 16, 2010
    Location:
    Texas
    #11
    Just used cyberduck a few minutes ago. Are you putting in the correct ip address?
     
  12. esadb macrumors 65816

    esadb

    Joined:
    Nov 29, 2008
    #12
    Nah the issue was some sort of ikey worm..

    I deleted 2 files i found the fix on here and it started working right away.
     
  13. doctapeppa thread starter macrumors 6502

    Joined:
    Jun 15, 2008
    #13
    I restored my phone, set it up from scratch and re-jailbroke and it works fine now.
     
  14. affe1111 macrumors newbie

    Joined:
    Jan 4, 2011
    #14
    same problem


    which files did you delete and where? pls help thx ;)
     
  15. esadb macrumors 65816

    esadb

    Joined:
    Nov 29, 2008
    #15
    Here ya go;

     
  16. Dhelsdon macrumors 65816

    Dhelsdon

    Joined:
    Feb 5, 2010
    Location:
    Canadian Eh!
    #16
    Wirelessly posted (iPhone 4: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)

    I too can Never connect to my phone through ssh on my Mac, using cyberduck.

    It worked for awhile, but was very temperamental so I reinstalled and it worked once then I get the said I/O
    connection failed. I gave up on ssh and now use iPhone explorer.

    The crappy thing is always having a iPod cable when I'm not home. Buying about 10 off eBay solved that issue, now I have them coming out my arse.

    Edit: I deleted those files, I will post my results tonight.
     
  17. SuperiPhoneGeek macrumors newbie

    Joined:
    Jun 6, 2011
    #17
    Thanks Buddy

    Have been banging my head trying to SSH on my iPhone but with no result.

    Ultimately Thanks to you could resolve the problem following your advice.

    Gr8 Advice Buddy :)
     

Share This Page