(win and mac)
There are more and more native applications released by the iPhone dev team, these real applications run natively and offline anytime anywhere. But with no installer in iPhone this time, it is not easy to get it work. To install those great applications easily, SSH is a great solution. The solution after the break works on Windows and Mac. (Updated)
Notice the steps taken below can damage iPhone and may not be able to restore under iTunes. USE IT AT YOUR OWN RISK. No one is responsible for any damaged iPhones and loss of data.
Make sure you have synchronized all data and created backups. We have tested the steps under firmware 1.0.1. If you’re ready, follow the steps below.
For Windows only
Step 1. Follow the SSH Guide by Hacktheiphone.com first. Make sure you place the sshkit inside the phonedmg folder. This step can only be finished under Windows.
Step 2. After SSH installed correctly, you can choose to use freeware WinSCP to login to the iPhone, SSH with ‘root’ as login name and ‘dottie’ as password. Remember to change SCP like this capture and type the iPhone IP address in the Host name. (Check iPhone IP by clicking Settings > Wi-Fi, tap the blue icon of access point that connected.):

Step 3. To install new software, upload the software you want under /Applications. Chmod it with the right permission, choose the application folder and select properties by right-click (mostly 755. You may also try 777). Restart the iPhone and it will be added to Springboard automatically.

For Mac only
Step 1. Notice you must have jailbreak before. Read the 10 Steps guide right here.
Step 2. Jailbreak now. Navigate to phonedmg folder, than type ‘./jailbreak’. Follow the instruction.
Step 3. AFTER STEP 2, DO THE FOLLOWING STEPS. DO NOT DO ANYTHING ELSE. Download and extract the files for enabling SSH in Mac. Some people DO REPORT PROBLEMS IF THEY EXTRACT IT IN PHONEDMG, TRY TO MAKE A NEW FOLDER FOR THEM. Navigate to the extracted folder under Terminal. Type ‘./iPhoneMacSSHInstall.sh’

Step 4. Follow the steps instructed and you are done. Press Ctrl+C at last.

Step 5. Jail your iPhone now. Navigate to your phonedmg folder (e.g. ‘cd phonedmg’), than type ‘./iPhoneinterface’. Go to the locking folder by typing ‘cd /System/Library/Lockdown’, type ‘putfile Services.plist’. If you don’t have Services.plist, download here and place it into phonedmg folder.
Step 6. To install application, put that under any folder. In this example, we put the Zune2.app under the user folder (‘~’), so we navigate it by typing ‘cd ~’.
Step 7. Under Terminal type ‘scp -rp Zune2.app root@192.168.0.123:/Applications” (where 192.168.0.123 is your iPhone’s IP address. Check by clicking Settings > Wi-Fi, tap the blue icon of access point that connected.) and it will than transfer the application ‘Zune2.app’ to iPhone. Input ‘dottie’ as default password.

Step 8. We have installed VoiceRecorder Utility, Terminal, iTetris, TicTacToe and Zune2. All of them don’t require you to change the Springboard. You only have to restart iPhone (by holding the Power button, slide it as it told. Turn back on by pressing the Power button again) after you did Step 1.

Step 9. You may also browse the iPhone file system. Start the Terminal and type ‘ssh root@my iphone ip address’. To know your iPhone IP address, click Settings, Wi-Fi, and tap the blue arrow button. It will ask you to input the password. Input ‘dottie’ as default. You have logged in your SSH system now.
Notice there are also a program called screenshot, which will not appear on Springboard after Step 7. You can use it by installing Terminal.app and run it using simple command.
For win and mac to remove the softwares, click here for the next tutorial.





There is a bug in you shell.
this line:
mv com.apple.update.plist.hackinit com.apple.update.plist
must be changed to:
cp com.apple.update.plist.hackinit com.apple.update.plist
or the file: com.apple.update.plist.hackinit will be deleted after the first run.
your archive does also not contain the file, i fetched it from the windows version, now it works.
thanks fpr you installer, now i finally managed to run ssh oh my iphone.
greetings, unschaf.
I m stuck on step 6, I cant get the Zune to go to the application folder after typing in the command. i get this thing that says: Operation timed out lost connection. PLEASE help me. And how do i do it for other applications in the future? Thanks for help me noob out.
Luke,
Did you check the IP address of your iPhone? The 192.168.0.123 mentioned is the IP address your iPhone. Change it and try it again.
Eddy
Yes! i hav finally done it. Thank you VERY much for your help. One last question though, where do i start from if i want to add another application? From first step to last?
can u also provide some help for installing rom on to the NES emulator?
Also, VRecord is not working, it does not show up on the phone
Luke,
great to hear that! Happy with your iPhone native applications.
Every time you want to install your applications, start from Step 6 for Mac, and Step 3 for Windows.
Jesse,
Will that be possible that you have already installed over 4 applications in your iPhone. So that the springboard cannot display the VRecord?
Anyway, I am now writing the tutorial for installing NES Emulator and VRecord now. Will come up very soon. Keep clicking winandmac.com.
type vrecorder whitout .app
help me please! How remove/delete iTetris from Applications directory?
Diego,
Take a look of the next tutorial.
http://www.winandmac.com/mobile/iphone/remove-applications-from-iphone/
Thanks.
I consider myself pretty good at tweaking but I can’t get this to work. Here is my Terminal and the errors it shows when following the directions:
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# Problem with AFCFileRefWrite: 11
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/#
——–PHASE 5: Restarting your iPhone, again———
Restart your phone once more. After that, you’re done!
Press Enter to continue…
——–PHASE 6: Clean up———-
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# Problem with AFCFileRefWrite: 11
iPhone:/#
———DONE!——–
Test connecting to your iPhone using ssh to see if this worked
ex: ssh -l root [IP Address]
Remember the root password is: dottie
Press Enter to Jail your iPhone or Ctrl-C to keep it free from jail^C
daryls-computer:~/Desktop/ssh daryl$ ssh root@192.168.0.104
ssh: connect to host 192.168.0.104 port 22: Connection refused
Hi i had a questions i couldn’t figure out what the mac directory was and i am having a prolbem adding apps to my iphone
I tried running your script however I get the error:
——–PHASE 1: Getting files off your iPhone———
./iPhoneMacSSHInstall.sh: line 17: ./iphoneinterface: cannot execute binary file
mv: rename com.apple.update.plist to com.apple.update.plist.orig: No such file or directory
mv: rename update to update.orig: No such file or directory
——–PHASE 2: Uploading files and reconfiguring your iPhone———
./iPhoneMacSSHInstall.sh: line 33: ./iphoneinterface: cannot execute binary file
Any help?
I would like to change my iphone and add these cool things but i dont have the new intel-mac i just have a powerbookg4. is there anything out there i can downloade to make my phone cooler?
I’m having some issues, I’m fairly new to all of this.
But… I’m getting a “iPhone:/# /usr/sbin/: No such file or directory”
and I noticed frtom your screens that it should say “iPhone:/# iPhone:/usr/sbin/:”
So pretty much for every command I get the “No such file or directory”
Can someone tell me what I’m doing wrong, here?
I am getting the same error as # 10… I also noted this happened.
——–PHASE 4: Putting init framework into place———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# Problem with AFCFileRefWrite: 11
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/# Problem with AFCFileRefOpen: 11
iPhone:/#
Alright i have all of the ssh set up but when i go to login i get the error message connectin refused
Just tried this to get SSH working, no go:
——–PHASE 1: Getting files off your iPhone———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# fileref: 1
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# fileref: 1
iPhone:/#
It continues on with a lot of no such file or directory errors. It sounds like /usr/sbin/ on my iPhone doesn’t exist. Any suggestions?
Thanks,
Jason
I can’t get this to work… I used iActivator to jailbreak, and it looks like the proper directories aren’t there. There is iTunes_Control and some other directories, but not /usr/bin, etc.. What am I doing wrong?
I tried to install Lights Out and VRecord. I’m fairly computer-savvy, and I followed this guide, and the SSH guide. I did all the steps, and the apps show up on my iPhone Dashboard….but when I click they just go to a black screen and then back to the main Dashboard. I changed the chmod to 777 and 555 but that didn’t change anything.
Can someone please help?
nevermind about the last post i figure it out now i dont understand step 3 for windows. how do i chmod it?
Flipper,
It looks like your iPhone didn’t jailbreak it before running the script. Could you please retry?
N,
Put the application that you want to install, navigate to that folder, than run the ‘scp’ command mentioned above.
Justin, A7x, Mtheory, Jason,
Did you guys have jailbreak it first?
Leave it in the jailbreak state and run the script. After running the script then you can jail it again.
Troy,
Sorry to say that it is very difficult to did it under PowerPC. And we don’t have the PowerPC Mac so we are not able to test it and write the guide. Very sorry about this
adam,
If you get this error, it looks like the SSH is not installed correctly in your iPhone. Please retry
dan,
you may try this guide to chmod the ‘rm’.
http://www.winandmac.com/mobile/iphone/fix-iphones-permission-denied-problem/
jason blight,
Did you use the jailbreak utility mentioned above?
dan,
you may try to chmod it using 755. It may not help, but just try it. I am testing it right now…
adam,
Chmod it by right-clicking the files that you want, select ‘Properties’ from the menu. Type ‘755′ in octal field box.
the VITAL piece of information missing it that the ssh folder MUST go inside the phonedmg folder. That will solve everyones missing folder problems they have been pasting.
I am not sure what I’m doing wrong… I am an experienced UNIX user as well, so I’m comfortable trying anything you suggest.
I have run Jailbreak via iActivator, then tried Step 3, and get the following output:
This shell script will install and enable a SSH server on your iPhone.
This script was created by Dallas Brown (http://www.kdbdallas.com)
This script was based off of Nate True’s (http://cre.ations.net/blog) Windows script
Special thanks to all of the #iphone dev team.
——–PHASE 1: Getting files off your iPhone———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# fileref: 1
iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# fileref: 1
iPhone:/#
——–PHASE 2: Uploading files and reconfiguring your iPhone———
iPhoneInterface v0.3.4 built on Jul 25 2007
Waiting for phone… established.
iPhone state: Activated
type “help” for help
iPhone:/# /usr/sbin/: No such file or directory
iPhone:/# iPhone:/# /System/Library/LaunchDaemons/: No such file or directory
iPhone:/# iPhone:/# /bin/: No such file or directory
iPhone:/# iPhone:/# iPhone:/# iPhone:/# iPhone:/# iPhone:/etc/# iPhone:/etc/# iPhone:/etc/init.d/# iPhone:/etc/init.d/# /usr/bin/: No such file or directory
iPhone:/etc/init.d/# iPhone:/etc/init.d/# iPhone:/etc/init.d/# /usr/lib/: No such file or directory
iPhone:/etc/init.d/# iPhone:/etc/init.d/# iPhone:/etc/init.d/# iPhone:/etc/dropbear/# iPhone:/etc/dropbear/# iPhone:/etc/dropbear/#
————-
As you can see, something is “missing” but I am not sure what. I’ve tried comparing to your terminal output to see what I am “missing” but it’s not clear. I dug into the scripts a bit and not even /usr/sbin exists. This is on the iphone I take it?
Do I just need to add a:
mkdir -p /usr/sbin
Would that do it? Just wanted your input before trying it — don’t want to hose my phone!
Or do I need to run some other kind of installer?
Thanks,
Alan
zebrum,
Actually I didn’t place it inside phonedmg folder, but your suggestion is worth to try.
Alan,
I also experience this kind of problem before, but DON’T mkdir anything or you may need to restore the iPhone again. Just try to jailbreak it yourself, not by iActivator.
Anyone figure out the issue with the: No Such Directory or file found? I have the SSH directory in the phonedmg directory but nothing, same problem
Luis,
if you got this error, it means you didn’t jailbreak your iPhone, or it cannot break into your iPhone. Try to jailbreak it
Thank you for the reply! I am beyond frustrated
I do ./jailbreak in the phonedmg directory I created and this is what I get:
Waiting for iPhone to finish booting…
Moving files into place…
Rebooting iPhone…
Enjoy your newfound freedom. Thank the devs at #iphone next time you see them for making this all possible.
p.s. Like most other useful tools, this one may be dangerous if used carelessly. Always remember — You brick it, you bought it.
p.p.s. I have no idea how ‘My Humps’ could possibly have gotten set as your ringtone.
i can also successfully iPhuc: setafc com.apple.afc2
I can even add ringtones no problem.
Figured it out…apparently I had old files in my phonedmg that were causing the failure. I started from scratch and now it ran no problem!
I’ve been trying to do this for the past 2 days, and still no luck. I keep getting the well-known msg “No such file or directory”
I used iActivator for the jailbreaking, even tho it says succeful I can’t still do anything. How do u jailbreak it w/o iActivator. I have a PowerBook (PPC) and it seems impossible find any info for it.
Thanx
Globaldj,
I am sorry that this method will not work for PowerPCs….
Will keep you updated.
when i run the winscp and i hit the login i get network error and the 2 buttons are ok which closes it and reconnect i get the same error all the time. i dont know if it has anything to do with it but when i installed the shh after the jailbreak on one of the lines it says
iphone:/system/library/launchdaemons# a duplicate file name exists, or the file cannot be found
the shh kit folder is in the phonedmg by the way
gian,
It is normal to get network error and you need to wait for few seconds. Don’t click cancel as promoted.
You may put the sftp-server from iPhone bin kit. We will post a completed tutorial for that later
When this method will work with Imac CPU Type: PowerPC G5 (3.1)?
Newtotheiphone,
Please read the headline, this guide no longer works.
Check out the ultimate iPhone page here. Updated frequently.
http://www.winandmac.com/iphone-guide-page/