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

MacPC

macrumors regular
Original poster
Sep 25, 2006
213
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.
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.