Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobdobbs0000

macrumors newbie
Original poster
Feb 3, 2010
3
0
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
 
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.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.