Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did anyone manage to get SSH working? #38

Open
Asynix opened this issue Dec 19, 2015 · 5 comments
Open

Did anyone manage to get SSH working? #38

Asynix opened this issue Dec 19, 2015 · 5 comments

Comments

@Asynix
Copy link

Asynix commented Dec 19, 2015

BRITTA ROLL UP [no its not pythech!]
[i] iomasterport: 0x0000070b / gasgauge user client: 0x0000050b
jk++
ret: 236d5000
ret: 00000000
found overlapping object
found overlapped object
ret: ffffff80
ret: 0128c000
ret: ffffff80
ret: 1bc61780
ret: 00000000
ret: 18c00000
ret: ffffff80
ret: 1ac02000

This is what I manage to get, I'm using qfdk's bootstrap and have followed all instructions to the point. However even after idevicediagnostics restart SSH still fails to work and I get connection refused. Any ideas?

@kpwn

@kpwn
Copy link
Owner

kpwn commented Dec 19, 2015

That looks correct. It should work. Care to do a "idevicesyslog"?

2015-12-19 6:00 GMT+01:00 Asynix [email protected]:

BRITTA ROLL UP [no its not pythech!]
[i] iomasterport: 0x0000070b / gasgauge user client: 0x0000050b
jk++
ret: 236d5000
ret: 00000000
found overlapping object
found overlapped object
ret: ffffff80
ret: 0128c000
ret: ffffff80
ret: 1bc61780
ret: 00000000
ret: 18c00000
ret: ffffff80
ret: 1ac02000

This is what I manage to get, I'm using qfdk's bootstrap and have followed
all instructions to the point However even after idevicediagnostics restart
SSH still fails to work Any ideas?

@kpwn https://github.com/kpwn


Reply to this email directly or view it on GitHub
#38.

@Asynix
Copy link
Author

Asynix commented Dec 20, 2015

Sure, but when is the best time to run idevicesyslog? Should I rerun the entire thing or is there a quicker method? I don't mind if I have to restore, I have a second device on iOS 8.4.1.

Maybe the bootstrap is the issue? I tried this with my own bootstrap but it didn't work either so I used qfdk's.

Also can you elaborate how OpenSSH starts with idevicediagnosticsrestart?

#!/bin/sh
launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
exit 0

From what I've seen none of the bootstraps have a launchctl file in /bin/ are we supposed to include it? Apologies and thanks in advanced for all the questions and thank you for providing us this tool, I'm merely a web designer nothing big and fancy like you folks 😅

Edit: I recovered this from the exact same time I got that yalu log:

Dec 18 23:41:48 iPhone SpringBoard[50] : Forcing crash report of <FBApplicationProcess: 0x146561120; MobileReplayer; pid: 209> (reason: 1, description: developer.apple.wwdc-Release failed to launch in time)
Dec 18 23:41:48 iPhone ReportCrash[210] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Dec 18 23:41:48 iPhone ReportCrash[210] : [CrashReport _extractBinaryImageInfoUsingSymbolicator] caught exception: *** setObjectForKey: object cannot be nil (key: ExecutablePath) (0x18394c22c 0x1955c00e4 0x1838350c8 0x10007ab1c 0x18b37835c 0x10007a8bc 0x1000798c4 0x100083abc 0x100078bbc 0x100078e44 0x195d7e0c0 0x100083514 0x195e1fdb8 0x195e1fd14 0x195e1cee8)
Dec 18 23:41:50 iPhone wifid[34] : WiFi:[472192910.006610]: Disable WoW requested by "dataaccessd"
Dec 18 23:41:51 iPhone SpringBoard[50] : Finished crash reporting.
Dec 18 23:41:51 iPhone ReportCrash[210] : Saved report to /var/mobile/Library/Logs/CrashReporter/MobileReplayer_2015-12-18-234148_iPhone.ips
Dec 18 23:42:28 iPhone locationd[57] : PLClientLogging: log locationd withContent {
} cannot continue due to nils!
Dec 18 23:42:54 iPhone syncdefaultsd[106] : (Note ) marked "com.me.keyvalueservice" topic as "enabled" on <APSConnection: 0x134e120d0>
[disconnected]
[connected]

@kpwn
Copy link
Owner

kpwn commented Dec 20, 2015

Just do it while doing a idevicediagnostics restart.

idea is idevicediagnostics restart runs /sbin/reboot as uid=0, which kickstarts sshd.

On 20 Dec 2015, at 02:55, Asynix [email protected] wrote:

Sure, but when is the best time to run idevicesyslog? Should I rerun the entire thing or is there a quicker method? I don't mind if I have to restore, I have a second device on iOS 8.4.1.

Maybe the bootstrap is the issue? I tried this with my own bootstrap but it didn't work either so I used qfdk's.

Also can you elaborate how OpenSSH starts with idevicediagnosticsrestart?

#!/bin/sh
launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
exit 0

From what I've seen none of the bootstraps have a launchctl file in /bin/ are we supposed to include it? Apologies in advance and thank you for providing us this tool, I'm merely a web designer nothing big and fancy like you folks 😅


Reply to this email directly or view it on GitHub #38 (comment).

@Asynix
Copy link
Author

Asynix commented Dec 21, 2015

Okay, I'll do it when I can. Is there a specific part of the log that you'd like me to post? Or would you just want the whole thing?

Thanks once again

@qfdk
Copy link
Contributor

qfdk commented Jan 5, 2016

you can try to write a script in reboot
for example
echo "test success" >>/media/coucou
just make sure that reboot is called ... or try to find the com.openssh.* exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants