Discuss [Services] Services manager at the Free Toolchain Software - Hackint0sh.org; Originally Posted by Mr. CoBalt
I have managed to get Services.app to recognize the SSH ...
-

Originally Posted by
Mr. CoBalt
I have managed to get Services.app to recognize the SSH version installed by iNdependence 1.2.5 by using a hex editor to change one of the strings in the application.
The only trick is that the strings you are changing in Services need to be the same length...
Example: Installing SSH with iNdependence 1.2.5 adds a LaunchDaemon plist file called org.thebends.openssh.plist located in /System/Library/LaunchDaemons/
However, this is not seen by Services because the only SSH file it looks for at that same path is au.asn.ucc.matt.dropbear.plist (presumably added by a previous version of iNdependence)
what you need to do is change the name of the org.thebends.openssh.plist file so that it is the same length as the au.asn.ucc.matt.dropbear.plist file. I did this by changing mine to org.new.thebends.openssh.plist. You also need to open up this plist and change the occurrence of "org.thebends.openssh.plist" to the new name.
Now that you have done this you must use a hex editor to change the Services application, presumably located at /Applications/Services.app/Services
The ASCII string you are searching for is /System/Library/LaunchDaemons/au.asn.ucc.matt.dropbear.plist (be warned that there is also a "/Library/LaunchDaemons/au.asn.ucc.matt.dropbear.plist" string located right near the relevant System-related string in the binary; this is not the one you want to change.
Change the /System/Library/LaunchDaemons/au.asn.ucc.matt.dropbear.plist line to /System/Library/LaunchDaemons/org.new.thebends.openssh.plist, save the file back to this same locations (I just used Transmit's edit function to open it straight off the phone with Hex Fiend and then save it back in place when the edits were done. YMMV) and then restart your iPhone just to be safe.
When it restarts if you open up Services it should see SSH and give you the toggle option. If it doesn't you may have forgotten to rename/edit the plist or messed up the hex editing: try again.
If it works you should be able to toggle SSH on (if it's off for some reason) and have it working with SFTP, etc. immediately. However, I find that toggling SSH off requires a restart of the phone to truly turn if off. Perhaps this is a glitch/expected behaviour?
Anyways, barring an update of OpenSSH that works with 1.1.1 or an update of the Services app that recognizes iNdependence's SSH version, this is the best I can come up with. Best of luck to everybody!
PS - A huge thanks to all the dedicated and awesome hackers who have made it possible to even think of running SSH on the iPhone. My hat is off to all of you.
I can confirm that this method works for me. My iphone was unlocked 1.0.2, virginized then activated and unlocked with INdependence 1.2.5 and anysim. Finding and working with a Hex editor was a little intimidating but in the end all works out fine. Also in my case switching off SSF also requires a reboot of the iPhone. Inconvenient but something I can live with. Thanks, Mr. Cobalt!
-
-

Originally Posted by
iPot
I tried to install it (using Windows), using the same method as I (succesfully) have used earlier to replace some images on certain other iPhone apps.
(1) First, I downloaded your new background image file and then renamed it to 'Default.png'.
(2) Second, I used a (Windows) application called iPhoneBrowser to replace the file to the iPhone directory '[root]/Applications/Services.app' with it.
But it did't work...
The image will almost immediately be overwritten with a 'fresh' default style background. I presume that's so because the switches need to be updated (?).
No it won't work. UI coding isn't bitmap raster manipulation. Part of the iPhone's UIKit (a Cocoa framework) are views (like windows) and he creates a UIPreferencesTable and adds table cells, and in those cells he adds the switches (UISwitchControl s). Breaking up the bitmaps, he could add the images to the cells quite easy, but changing the functionality of the UISwitchControls would be a pain.
-
-
I've read through this thread, and I really am lost as in if anyone has the same problem as me.
I am not sure if this affects anyone else, but whenever I used the Services.app to turn off Edge, they ask me to re-enter my pin, which I do. But after going to Springboard and back into Services.app, Edge turns on by itself again. It keeps reverting back to ON after I turn it off. All my others work fine, Bluetooth, WiFi and SSH stay off when I turn them off, and they stay on when I turn them on, except Edge.
Is anyone having the same problems as me? Or am I the only one? Is there a way to solve this problem?
Thanks in advance!
-
Extra SSH field?
Hey!
I just recently restored my iphone, virginized it and updated to 1.1.1. I installed bsd systems and all that, and services app.
The thing is, even without having "openssh" installed the services app shows the SSH button, on/off.
And when i Install OpenSSH then I suddenly get 2x SSH buttons on/off.
Is anyone having this issue? and how could I remove the first one? It should only show SSH if you have OpenSSH installed.
-
-
When i have the Edge setting off.. and I try to access my email or safari.. it'll say "Could not activate EDGE: You are not subscribed to EDGE"
is that normal?? is there a way to get rid of that message?
i'm on fw 1.02
-
Senior Professional
Array
I have iNdependence 1.2.5 OpenSSH installed but I don't have the switch to turn it off
AisMen
8 Gb 1.0.2->1.1.1->1.1.2->1.1.3 iPhone (iJailBreak)
100% Tim Italy
-
-
Would be great to add on/off for VPN also. Great app btw :-)
-
Advanced
Array

Originally Posted by
cehoffman
Requirements
In order for this to all work, your system must have BSD Subsystem installed or at least the BSD/Unix tools grep, launchctl, sh/zsh/some shell, and ifconfig.
how do i do that and where do i find this BSD Subsystem installer.
i installed it using Installer but i couldn't find the SSH turn off switch :S
-
-

Originally Posted by
Mac25
how do i do that and where do i find this BSD Subsystem installer.
i installed it using Installer but i couldn't find the SSH turn off switch :S
People could correct me if I'm wrong, but I would think that you do not have OpenSSH installed.
-
Advanced
Array

Originally Posted by
kakihara
People could correct me if I'm wrong, but I would think that you do not have OpenSSH installed.
well im quite sure i did cause when i got the phone it came with FW1.1.1 and i downgraded, activated, jailbroke, upgraded, unlooked, all using the latest version of "Independence" and a part of the procedure is installing SSH.
It even said that after I unlock I should either uninstall SSH or switch it on and off using Services from installer.
Note:
when I turn EDGE off I lose my service and get no connection !!?
What did I do wrong?
Last edited by Mac25; 11-02-2007 at 02:46 AM.
-
Similar Threads
-
By jeanmib in forum Free Toolchain Software
Replies: 2
Last Post: 11-03-2007, 11:27 AM
-
By hidehide in forum Free Toolchain Software
Replies: 7
Last Post: 10-26-2007, 07:35 AM
-
By t0n3dawgg in forum General
Replies: 4
Last Post: 09-14-2007, 07:49 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks