ssh on the iPhone

Hosted by imgPire.com

A guy who uses the handle NerveGas on #iphone has figured out how to enable ssh on the iPhone without using the iPhone restore mode as it does not work with all public version of iPhoneInterface. The secret is in overwriting the ‘update’ binary with ‘chmod’ and the plist to trick the iPhone into calling ‘chmod’ on the Dropbear ssh server which makes it an executable. Boom! We now can ssh into our iPhone to send and retrieve files using sftp and or to do other neat things.

gdb anyone?

NerveGas used Nightwatch’s compiler to create iPhone-compatible versions of curl and ps as well as a number of other useful Unix utilities. Big thanks to NerveGas for this!

Links:

http://iphone.fiveforty.net/wiki/index.php/Dropbear-ssh
http://netkas.freeflux.net/blog/archive/2007/07/22/iphone-binary-shell-compiled.html
http://pastebin.com/m7abdb007

Leave a Comment