Friday, August 20, 2010

IPHONE OpenSSH - ssh_exchange_identification: Connection closed by remote host



This is a bit out of topic...

When you are not be able to ssh to your iphone... as the error message as below:
ssh_exchange_identification: Connection closed by remote host

it's very high possibility that you have inflected by the ikey virus.


you can do as below:

1. reinstall openssh; then do /usr/bin/ssh root@your_iphone_ip "rm /bin/poc-bbot /bin/sshpass /var/log/youcanbeclosertogod.jpg /var/mobile/LockBackground.jpg /System/Library/LaunchDaemons/com.ikey.bbot.plist /var/lock/bbot.lock /usr/libexec/cydia/startup /usr/libexec/cydia/startup.so /usr/libexec/cydia/startup-helper /System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist"

or

reinstall openssh; then use your ssh client login and cut and paste
"rm /bin/poc-bbot /bin/sshpass /var/log/youcanbeclosertogod.jpg /var/mobile/LockBackground.jpg /System/Library/LaunchDaemons/com.ikey.bbot.plist /var/lock/bbot.lock /usr/libexec/cydia/startup /usr/libexec/cydia/startup.so /usr/libexec/cydia/startup-helper /System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist" (need to do it quick before the server's off; redo step 1 if you missed it.)

2. reinstall the openssh again; then change your openssh password.

if the above steps don't work.

reinstall cydia and then openssh; then change your openssh password.

See? the point is 'change your openssh password'!!!

Sources: found in the internet.

Could Not Find What You Want Here? Search Here!