-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15e20f9
commit 807a151
Showing
1 changed file
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div align="center"> | ||
<img src="sshtogglepreferences/Resources/[email protected]" alt="logo" width="75px" height="75px" style="margin-top: 1em"> | ||
<img src="sshtoggle/sshtogglepreferences/Resources/[email protected]" alt="logo" width="75px" height="75px" style="margin-top: 1em"> | ||
<h1>sshtoggle</h1> | ||
<h4>A MobileSubstrate tweak to start/stop SSH daemon</h4> | ||
</div> | ||
|
@@ -9,23 +9,28 @@ | |
1. PreferenceLoader | ||
2. Sudo | ||
|
||
### Pre-requisites | ||
- Edit `/etc/sudoers` to include: | ||
|
||
```conf | ||
mobile ALL=(ALL) NOPASSWD:/bin/launchctl | ||
``` | ||
|
||
### Install | ||
|
||
Get the latest version from [releases](https://github.com/Praseetha-KR/sshtoggle/releases) | ||
`sshtoggle` tweak also has `sshtoggled` daemon dependency. | ||
|
||
Get the latest version for both tweak & daemon from the [releases](https://github.com/Praseetha-KR/sshtoggle/releases) page | ||
|
||
```bash | ||
$ ssh root@<device_ip> | ||
|
||
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.1/in.imagineer.sshtoggle_0.0.1_iphoneos-arm.deb?raw=true -O | ||
# daemon | ||
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.2/in.imagineer.sshtoggled_0.0.2_iphoneos-arm.deb?raw=true -O | ||
|
||
dpkg -i in.imagineer.sshtoggled_0.0.2_iphoneos-arm.deb\?raw\=true | ||
|
||
launchctl load -w /Library/LaunchDaemons/in.imagineer.sshtoggled.plist | ||
|
||
|
||
# tweak | ||
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.2/in.imagineer.sshtoggle_0.0.2_iphoneos-arm.deb?raw=true -O | ||
|
||
dpkg -i in.imagineer.sshtoggle_0.0.1_iphoneos-arm.deb\?raw\=true | ||
dpkg -i in.imagineer.sshtoggle_0.0.2_iphoneos-arm.deb\?raw\=true | ||
|
||
killall -9 backboardd | ||
``` | ||
|
@@ -43,8 +48,17 @@ Now SSH Toggle settings will appear in iOS Settings. You can turn OFF/ON the SSH | |
#### Tools: | ||
- [theos](https://github.com/theos/theos/wiki/Installation) | ||
|
||
#### build: | ||
#### Initial Setup: | ||
|
||
``` | ||
THEOS_DEVICE_IP=<ip> make package install | ||
sudo ./scripts/setup.sh | ||
``` | ||
> Setup script installs [fauxsu](https://github.com/DHowett/fauxsu) inside theos directory, this is equired to set ownership of generated `.deb` files from system user to `root:wheel` | ||
#### build & install: | ||
|
||
``` | ||
export THEOS_DEVICE_IP=<ip> | ||
./scripts/install.sh | ||
``` |