Removing Dropear SSH from iPhone or iPod Touch

Dropbear

Dropbear SSH (which installable by iNdependence) is a requirement to do the Pre 1.1.1 Upgrade in iNdependence.

Uninstalling

This guide is for people who have jailbroken their iPod touch or iPhone, installed Installer.app, installed OpenSSH from Installer.app and no longer need the depreciated dropbear SSH server. Running 2 servers that do the exact same thing ridiculous waste of system resources. Uninstalling dropbear is quick and easy and here’s how you do it.
  1. Ensure you have OpenSSH installed by checking the uninstall portion of Installer.app, and also that you’re running it by rebooting the iPod touch/iPhone after installing it from Installer.app.
  2. Connect to your iPod touch/iPhone via SSH.
  3. Step 3: Run the following commands to remove the dropbear files.
    rm -rv /etc/dropbear/
    rm -rv /usr/bin/dropbear/
    rm -v /System/Library/LaunchDaemons/au.asn.ucc.matt.dropbear.plist
  4. Step 4: Before you start, backup this file before editing it. Then download and open /System/Library/LaunchDaemons/com.apple.update.plist in a text editor and remove any section containing dropbear references. Be very careful when editing this file as it can cause problems if damaged. Then upload the file replacing the original (making sure your backup is intact).
    Step 5: Reboot the iPod touch/iPhone. You should now be running just one SSH server.

    You should also consider installing Services.app from Installer.app and turning SSH off when you don’t need it, some have claimed that it drains your battery fairly quickly.
Related Entries:
How to make screenshots on iPhone or iPod Touch
Boot iPhone or iPod Touch in verbose mode
Fix for Weather icon not changing
Remove Application space limit
Merging the Music & Video icons
Comments (4)  Permalink

Comments

Alex @ 03.11.2007 02:44 CEST
I was looking for a way to do this.
Thanks!
Le Sparte @ 09.11.2007 00:45 CEST
I used jailbreakme.com to hack my iTouch. Is Dropbear SSH installed during this process?

Many thanks for you answer!
Koos @ 09.11.2007 11:08 CEST
@Le Sparte,
Just enter at your command line (Terminal on Mac OS, PuTTY on Windows):
ssh -l root your.ipods.ip.address

NOTE : In the above command, -l is an L, not a 1.
IP Address can be found when you click on the ">" in the WiFi menu on your Touch.

When it prompts for a password, you got Dropbear installed. When it doesn't, there is no SSH server installed.
Le Sparte @ 12.11.2007 21:21 CEST
Thanks Koos. It wasn't installed ;-)

add a comment

This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!

Name*
E-Mail
For Spammers Only
URL
Comment*
Notify me via E-Mail when new comments are made to this entry
Remember me (needs cookies)