HOWTO: Install SSH on your iPhone *DEPRECATED, use iBrickr instead*

Tags: easy, hacks, iphone, ssh
These instructions are deprecated - it's much easier to download iBrickr and install the dropbear and binkit packages using the Applications interface.

Instructions left for nostalgia sake, though:

These instructions work with the latest 1.0.1 iPhone update.

Right now these instructions work for Windows. A Mac OSX version must be made by someone else, but the translation is fairly easy. The sshify-windows.bat must be replaced with a file that contains equivalent Mac OSX commands.

These instructions MUST be run on a phone that has already had Jailbreak 1.1 run on it. For instructions on that see the custom ringtone tutorial.

This tutorial is dead easy.

Step 1 - Download Nate True's iPhone SSH kit.

Step 2 - Extract that to a folder somewhere.

Step 3 - Run sshify-windows.bat and follow the instructions carefully.

Okay, Step 3 is more steps but they are laid out plainly.

Step 4 - Connect with SSH! You should be able to use an SCP client like WinSCP to put more files from the latest compiled binkit.

Return to Nate True's blog

Comments:

Posted by gadgetgirl 2 years ago ( 01-Aug-2007 01:14:51 )

The sshify-window.bat script appears to neglect adding au.asn.ucc.matt.dropbear.plist to /System/Library/LaunchDaemons (or the script tries and the file is not in the sshkit.zip file. It's late and I didn't debug thoroughly). I was unsuccessful with your script until I added au.asn.ucc.matt.dropbear.plist by hand (now it works). Thanks for putting this together! :)

Posted by artist 2 years ago ( 02-Aug-2007 17:09:31 )

I am a novive but how do you actually use SCP with the iPhone? I could get as far as the three steps but I don't have a host name or password & port number? I would appreciate some advice.

Posted by kdbdallas 2 years ago ( 04-Aug-2007 12:47:27 )

I made a mac version, and made it a little better. You can download the mac version here: http://iphone.port21.com/Code/iPhone_SSH_Install_for_Mac.zip

This comment was edited at 2007-08-04 12:48:03


Posted by artist 2 years ago ( 05-Aug-2007 18:25:39 )

I am working on Windows. If anyone can provide that I'd appreciate it. Thank yall so much

Posted by artist 2 years ago ( 06-Aug-2007 14:17:47 )

why am i getting connection timeout error?

in phase 4: putting init framework into place the 2nd filref# file remains at 0?

anyone know why?

thus, when I connect, WinSCP times out

Posted by devo 2 years ago ( 06-Aug-2007 20:00:54 )

I am getting strange error, tried rebooting and got less errors, but keep getting this one...any ideas....

--------PHASE 4: Putting init framework into place------

1 file(s) copied.
1 file(s) copied.
iPhoneInterface v0.3.1 built on Jul 14 2007

USBMuxListenerCreate: No error
Problem registering main callback: -402653180
--------PHASE 5: Restarting your iPhone, again---------

Posted by devo 2 years ago ( 06-Aug-2007 20:04:40 )

sorry, also to add, the process plows thru totally but when I try to SCH into my iPhone, it says "Network Error: Connection refused." if that helps any. thanks in advance for any ideas. -Devo

Posted by artist 2 years ago ( 06-Aug-2007 20:21:34 )

I can't get in phase 4: putting init framework into place the 2nd filref# file remains at 0?

anyone know why?

thus, when I connect, WinSCP reads "Network Error: Connection refused." as well.

Thanx

Posted by artist 2 years ago ( 06-Aug-2007 21:44:44 )

Finally got it. add the au.asn.ucc.matt.dropbear.plist manually to that stated directory. It works great now.

Posted by consumption 2 years ago ( 07-Aug-2007 12:37:43 )

@artist when did you add the file "au.asn.ucc.matt.dropbear.plist" after you ran the .bat file?


Posted by artist 2 years ago ( 07-Aug-2007 16:35:46 )

run the au.asn.ucc.etc.... file after the *.bat file.. So Yes, Correct. just use iphoneinterface to add the au.asn.... file to the /System/Library/LaunchDaemons directory.

After that reboot your iphone and boom. You got it.

good luck.

Posted by artist 2 years ago ( 07-Aug-2007 16:36:38 )

dont forget to use lockdown and exit to iphone interface as well to finalize that execution.

Posted by mackalvin 2 years ago ( 08-Aug-2007 07:47:30 )

@Artist, this is mac kalvin, can u let me know from where i can get this au.asn.ucc file and what i need to write in script file to copy into iPhone. Thanks & Warm regards Mac

Posted by artist 2 years ago ( 08-Aug-2007 19:53:42 )

http://iphone.natetrue.com/

the eighth file is the one you want.
Plus use iphoneinterface in the command prompt.

use cd \ (to get back to the harddrive directory
use cd phonedmg to use that directory

then in that directory just add phondmg/iphoneinterface and connect your phone then, assuming you ran jailbreak, add the command:

putfile /System/Library/Launch/Daemons/au.asn.ucc.matt.dropbear.plist

than do a lockdown and exit :D

PS.. (DOES ANYONE KNOW HOW TO USE THE WIRELESS WI-FI to use the phone music over wifi? I'm stuck at the last step)

Posted by consumption 2 years ago ( 09-Aug-2007 08:13:49 )

what is a lockdown?

Posted by themagicman 2 years ago ( 19-Aug-2007 09:03:33 )

Nate- when I tried to run the program sshify-windows.bat...the CMD prompts goes directly to step 3 and I get this any ideas what's going on? (windows vista/itunes 7.3.1)
thanks

Hello, this batch file will install and enable a SOCKS server on your iPhone.
Script authored by Nate True ( http://cre.ations.net/blog )
Mad thanks to:
- ziel (for writing Jailbreak)
- NerveGas (for compiling these programs for iPhone)
- Nightwatch (for making a working iPhone compiler)
And the rest of the #iphone dev team. Also thanks to the writers of srelay!

--------PHASE 1: Getting files off your iPhone---------

The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.

--------PHASE 2: Uploading files and reconfiguring your iPhone---------

The system cannot find the file specified.

--------PHASE 3: Restarting your iPhone---------

Press and hold the Power button on your iPhone until it shows the "slide to turn
off" red slider.
Slide it, wait for the phone to turn off, and press the power button to turn it
on again.
Press any key to continue . . .

Posted by madrich 2 years ago ( 21-Sep-2007 07:35:36 )

Battery life and SSH: I read that that SSH s/b unloaded to stop it from draining my IPhone battery. I am novice and don't know how to check if my IPhone has this problem. If so, how to fix it? Thank you in advance.

This comment was edited at 2007-09-21 15:34:17


Posted by hollywoodd 2 years ago ( 11-Oct-2007 22:59:33 )

I am running this in windows command mode... and i have no access to the IPHONE GUI because its still locked... how do i find out what its IP address is?

Posted by vinkap 2 years ago ( 12-Oct-2007 22:53:11 )

Is OpenSSH not the same as "Nate True's iPhone SSH"?? I read couple of articles ("www.iphonealley.com/tips-and-tricks/regain-battery-life-after-installing-3rd-party-applications" being one of them) that say you should disable the SSH daemon to conserve battery life. However, "Services" app doesn't show the SSH process on my phone where I installed Nate True's iPhone SSH which leads me to believe that the two are not the same. Can anyone pls. point me to the right direction as to how can I go about disabling Nate True's iPhone SSH server process so that it doesn't keep running all the time. Thx.

Log in or register to post comments.
You are not logged in.
Log inRegister now!