iPhone SSH

Discussion in 'Jailbreaks and iOS Hacks' started by MacPC, Aug 1, 2011.

  1. MacPC macrumors regular

    Joined:
    Sep 25, 2006
    #1
    Hi I have followed this link to install OpenSSH on to my iPhone 4, iOS 4.3.5.
    http://www.techpetals.com/how-to-in...n-ios-4.2.1-2554/comment-page-1#comment-34539

    When I SSH to the iphone, I got this error message:
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Connecting to localhost [::1] port 22.
    debug1: fd 19 clearing O_NONBLOCK
    debug1: Connection established.
    debug1: identity file /var/mobile/Applications/64676C7E-C5E8-4420-A0AB-C20475049665/Documents/keys/.ssh/.ssh/identity type -1
    debug1: identity file /var/mobile/Applications/64676C7E-C5E8-4420-A0AB-C20475049665/Documents/keys/.ssh/.ssh/id_rsa type -1
    debug1: identity file /var/mobile/Applications/64676C7E-C5E8-4420-A0AB-C20475049665/Documents/keys/.ssh/.ssh/id_dsa type -1
    ssh_exchange_identification: Connection closed by remote host

    How can I fix it? thanks in advance.
     
  2. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #2
    Chances are something happened to your jailbreak. If you are on a Mac, you can try wiping out your known_hosts file, but otherwise you are probably stuck reinstalling iOS and re-doing the jailbreak.

    Wiping out the known_hosts on a Mac:

    Open a terminal and type

    rm -f ~/.ssh/known_hosts
     

Share This Page