Index of /

[ICO]NameLast modifiedSizeDescription

[DIR]nescore/2007-11-01 14:34 -  
[DIR]nesapp/2007-11-01 14:33 -  
[   ]PDFViewer-Source-0.03.tar.gz2007-10-22 01:12 43K 
[   ]PDFViewer-0.03.tar.gz2007-10-19 02:24 52K 
[   ]BSD_Extra-2.1.tar.gz2007-10-15 16:00 2.2M 
[DIR]XLaunch/2007-10-15 01:20 -  
[DIR]VoiceNotes/2007-10-15 01:20 -  
[DIR]Tapp/2007-10-15 01:19 -  
[DIR]SendSong/2007-10-15 01:19 -  
[DIR]OtherErica/2007-10-14 19:05 -  
[TXT]EricaREADME.html2007-10-14 19:04 1.1K 
[   ]iASign-0.2.tar.gz2007-10-11 05:10 40K 
[   ]1.1.1-jailbreak.tar.gz2007-10-11 05:10 1.2M 
[   ]iPhone_SSH_Install_for_Mac.zip2007-10-10 13:35 9.2M 
[   ]BSD_Base-2.0.tar.gz2007-10-10 13:28 790K 
[   ]springpatch-1.1.1.tar.gz2007-10-10 12:43 3.0K 
[   ]snap.gz2007-10-09 21:49 3.9K 
[   ]ssh_3.2.9.1_mach-o_acorn.tar.gz2007-10-09 17:00 3.5M 
[DIR]Widgets/2007-09-18 19:23 -  
[   ]iPhoneToolchainv05.dmg2007-09-10 19:36 51M 
[   ]ibrate-0.1.tar2007-09-05 03:04 150K 
[DIR]EricaUtilities/2007-09-02 07:01 -  
[DIR]SendFile/2007-09-02 00:56 -  
[   ]build.python2007-08-31 03:13 80K 
[DIR]UIctl/2007-08-30 16:07 -  
[DIR]Light/2007-08-28 04:18 -  
[DIR]OpenURL/2007-08-28 03:36 -  
[DIR]FuelUtils/2007-08-21 18:49 -  
[   ]README2007-08-18 19:57 6.6K 
[TXT]README.html2007-08-07 16:53 4.7K 
[   ]iPhoneInterface.NerveGas2007-08-01 05:02 182K 
[TXT]vfdecrypt.c2007-08-01 03:04 16K 
[   ]ruby-1.8.6.tar.gz2007-07-31 21:34 1.5M 
[   ]au.asn.ucc.matt.dropbear.plist2007-07-28 22:39 402  
[   ]python_mach-o_acorn_build6.tar.gz2007-07-27 17:17 5.2M 
[   ]iphoneinterface_macosx.zip2007-07-26 01:19 71K 
[   ]jailbreak11.zip2007-07-25 05:32 630K 
[   ]apache_1.3.37_mach-o_acorn.tar.gz2007-07-25 01:20 281K 
[TXT]keep_iphone_on.html2007-07-24 06:46 171  
[   ]iphone-ssh-kit-vr1.tar.bz22007-07-24 04:45 340K 
[   ]dropbearkey.exe2007-07-24 04:38 81K 

These files are maintained by NerveGas - to contact him use IRC at, channels #iphone-shell, #iphone-uikit, #iphone-dev, or #iphone

For iPhone tethering instructions go to

For iPhone SSH installation instructions go to

The instructions below are for iPhone 1.0.0 - for 1.0.1 use the link above

Working SSH Instructions by NerveGas

Previous instructions on the net have required the use of restore mode to set
binary permissions. Unfortunately, restore mode doesn't work with all public
versions of iPhoneInterface I've tried. The instructions below work by
overwriting an existing binary on the system with chmod, and then calling it
with the appropriate arguments to set permissions. The result is a fully
functional SSH setup. You can then proceed to uploading your own world builds,
or other programs to execute via commandline.

Step 1: Key Creation

MAC: Download dropbear from here:
    Run: ./configure && make
    You don't need to install the software, just run:

PC: download dropbearkey.exe from here

BOTH: Run these commands to generate keys for dropbear:

    ./dropbearkey -t rsa -f dropbear_rsa_host_key
    ./dropbearkey -t dss -f dropbear_dss_host_key

And copy the two new key files into your iPhoneInterface directory.

Step 2: Uploading dropbear and friends

    Download the iphone-ssh kit and the iphone binaries kit:

    Rename sh6 from the kit to sh.

    Use the jailbreak application to break out of jail, and then open
    iPhoneInterface to connect.

    mkdir /etc/dropbear
    cd /etc/dropbear
    putfile dropbear_rsa_host_key
    putfile dropbear_dss_host_key
    cd /bin
    putfile chmod
    putfile sh
    cd /usr/bin
    putfile dropbear

Step 3: Overwriting 'update' with 'chmod'

    While still connected to iPhoneInterface, make a backup copy of

    cd /usr/sbin
    getfile update

    Rename this to update.original on your local filesystem

    Now copy the 'chmod' binary to 'update' and upload it back to the

    cd /usr/sbin
    putfile update

Step 4: Overwriting the update configuration

    Now the 'update' binary is really 'chmod', and has execute permissions! We
    just need to tell the iPhone to chmod next time it boots. To do this, we
    download /System/Library/LaunchDaemons/ and add our
    own arguments to ProgramArguments:

    0 /usr/sbin/update
    1 555
    2 /bin/chmod
    3 /bin/sh
    4 /usr/bin/dropbear

    Save the new plist and upload it back to the iPhone:

    cd /System/Library/LaunchDaemons

    While we're here, lets also:

    putfile au.asn.ucc.matt.dropbear.plist

Step 5: Reboot the iPhone twice.

    The first reboot should set the permissions on the dropbear and related
    binaries. The second reboot should start dropbear, so you can ssh to it:

    ssh -l root [IP ADDRESS]
    The root password is 'dottie'.

Step 6: Replace the original update and files

    Don't forget to put the old update files back. Rename update.original back
    to update, and delete the extra ProgramArguments you added to Now put them back:

    cd /System/Library/LaunchDaemons

    cd /usr/sbin
    putfile update

Step 7: Change the root password

    If you don't like 'dottie', you can generate a new encrypted password
    by running:

    perl -e 'print crypt("MYPASSWORD", "XU");'

    Where MYPASSWORD is the new password you want, and XU is a random two-letter
    salt. Copy the encrypted output and replace the existing one in
    /etc/master.passwd on the phone.

You're done! Enjoy!