iphone ssh suddenly not working

Discussion in 'iPhone Tips, Help and Troubleshooting' started by bobdobbs0000, Feb 3, 2010.

  1. bobdobbs0000 macrumors newbie

    Joined:
    Feb 3, 2010
    #1
    Hi.

    I've got an older iphone 2G. I have installed ssh via cydia. I hadn't ssh'd into it for a while.

    I attempted to ssh in today.
    I get this message from my local desktop commandline client:

    Code:
    ssh_exchange_identification: Connection closed by remote host
    
    I've tried regenerating the keys on the iphone. That didn't work.
    I unsintalled openssh and deleted /etc/ssh on the iphone, then tried again.

    At first, the connection just hung. I typed an escape into my desktop terminal to end to connection attempt. Then I tried again.

    Then I instantly got the same error message.

    Here is what happens at the moment, when I attempt to connect from the cli client.

    Code:
    
    OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to iphone [192.168.1.78] port 22.
    debug1: Connection established.
    debug1: identity file /home/user/.ssh/identity type -1
    debug1: identity file /home/user/.ssh/id_rsa type -1
    debug2: key_type_from_name: unknown key type '-----BEGIN'
    debug2: key_type_from_name: unknown key type 'Proc-Type:'
    debug2: key_type_from_name: unknown key type 'DEK-Info:'
    debug2: key_type_from_name: unknown key type '-----END'
    debug1: identity file /home/mantis/.ssh/id_dsa type 2
    debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
    debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
    ssh_exchange_identification: Connection closed by remote host
    
    What is happening here ?
    How do I get my ssh access back ?

    Thanks
     
  2. bobdobbs0000 thread starter macrumors newbie

    Joined:
    Feb 3, 2010
  3. juukyuu macrumors newbie

    Joined:
    Feb 5, 2010
    #3
    Have you tried using another SSH client? Which one do you usually use? As for me, it's CyberDuck, but SSH wasn't working anymore. Ended up not bothering using another client.
     
  4. bobdobbs0000 thread starter macrumors newbie

    Joined:
    Feb 3, 2010
    #4
    I'm using openssh.

    I have also tried using filezilla and gftp.
    I get the same result.
     
  5. commbot, Feb 12, 2011
    Last edited: Feb 12, 2011

    commbot macrumors newbie

    Joined:
    Jun 26, 2010
    #5
    Having the same problem with a recently jb 3GS using 4.2.1. Haven't worked out what's wrong yet but I find reinstalling OpenSSH fixes it temporarily.

    Update: in my case, i found it was the ikee worm deleting the sshd executable. Follow the instructions here to remove it

    http://forums.justcommodores.com.au/lan-lounge/118975-iphone-ikee-worm-fix.html
     

Share This Page