Welcome, guest ( Login )

Create new page

Invite people

WikiHome » iPhoneHacking » InstallingDropbearOSX

InstallingDropbearOSX

Version 22, changed by guest. 09/12/2007.   Show version history

Deprecated. Use this instead: New DropBear Script

Works with Jailbreak from iFuntastic 2.1 and iPhoneinterface
v3.3 (with working getfile and putfile)

Thanks to ziel, NerveGas?, Nightwatch, kroo, darkten, natetrue
and the rest of the crew from #iphone-dev and #iphone-shell

These OSX instructions were modified by bricolage based on
natetrue's Windows version here:
http://cre.ations.net/blog/post/howto-install-ssh-on-your-iphone

Also see http://iphone.natetrue.com/ for more downloads.

Dallas Brown has created an automated install of SSH onto the iPhone from MacOS?. You can download it at: http://iphone.port21.com/Code/iPhone_SSH_Install_for_Mac.zip
NB: Use of ">>>" simply denotes you're inside of the iphoneinterface shell. Use of "$" denotes you're at your own shell prompt.

PHASE 1: Get files off your iPhone

# After running jailbreak

./iphoneinterface

>>>>>>>>>>
cd /usr/sbin
getfile update
cd /System/Library/LaunchDaemons
getfile com.apple.update.plist
exit
>>>

$ mv com.apple.update.plist com.apple.update.plist.orig
$ mv update update.orig
$ cp chmod update
$ cp com.apple.update.plist.chmod com.apple.update.plist

PHASE 2: Upload files and reconfigure your iPhone

$ ./iphoneinterface

>>>>>>>>>>
cd /usr/sbin
putfile update
cd /System/Library/LaunchDaemons
putfile com.apple.update.plist
cd /bin
putfile chmod
putfile sh
putfile ls
mkdir /etc/init.d
cd /etc/init.d
putfile dropbear.sh
cd /etc
putfile hackinit.sh
cd /usr/bin
putfile dropbear
putfile scp
cd /usr/lib
putfile libarmfp.dylib
mkdir /etc/dropbear
cd /etc/dropbear
putfile dropbear_rsa_host_key
putfile dropbear_dss_host_key
exit
>>>

PHASE 3: Restart your iPhone

# Reboot your phone

PHASE 4: Put init framework into place

$ rm update
$ rm com.apple.update.plist
$ cp update.orig update
$ cp com.apple.update.plist.hackinit com.apple.update.plist
$ ./iphoneinterface
>>>
cd /usr/sbin
putfile update
cd /System/Library/LaunchDaemons/
putfile com.apple.update.plist
putfile au.asn.ucc.matt.dropbear.plist
exit
>>>

PHASE 5: Restart your iPhone, again

# Reboot your phone

$ ssh root@LOCAL_IP_OF_IPHONE

You're done!

Add comment

Comments (3)

Delete comment

guest said, 08/06/2007:

what do i do on the VERY last step? where it says: ssh root@LOCAL_IP_OF_IPHONE

i got all the way to there...

THANKS

Delete comment

guest said, 08/11/2007:

My getfile doesn't work..... For some reason the command doesn't work on jailbreak for Mac OSX i believe..... it works on the windows version presumably though.

Attachments (0)

  File By Size Attached Ver.