update from bash to sh fo install

This commit is contained in:
fire1ce 2022-04-23 22:01:59 +03:00
parent c4442d9856
commit 280d7dad46

View File

@ -2,20 +2,24 @@
## Persistence on Reboot ## Persistence on Reboot
<<<<<<< HEAD
This script need to run every time the system is rebooted since the __/root/.ssh/authorized_keys__ overwrites every boot. This script need to run every time the system is rebooted since the __/root/.ssh/authorized_keys__ overwrites every boot.
=======
This script need to run every time the system is rebooted since the **/root/.ssh/authorized_keys** overwrites every boot.
>>>>>>> ee5db53 (update from bash to sh fo install)
This can be accomplished with a boot script. Flow this guide: [UDM / UDMPro Boot Script](https://github.com/boostchicken-dev/udm-utilities/tree/master/on-boot-script) This can be accomplished with a boot script. Flow this guide: [UDM / UDMPro Boot Script](https://github.com/boostchicken-dev/udm-utilities/tree/master/on-boot-script)
## Compatibility ## Compatibility
* Tested on UDM PRO - Tested on UDM PRO
* UDM Pro doesn't support __ed25519__ SSH Keys - UDM Pro doesn't support **ed25519** SSH Keys
## Installation ## Installation
The script was tested on UDM PRO The script was tested on UDM PRO
```bash ```bash
curl https://raw.githubusercontent.com/fire1ce/UDMP-Persistence-SSH-Keys/main/install.sh | bash curl https://raw.githubusercontent.com/fire1ce/UDMP-Persistence-SSH-Keys/main/install.sh | sh
``` ```
Add you public RSA keys to: Add you public RSA keys to:
@ -40,7 +44,7 @@ rm -rf /mnt/data/ssh/authorized_keys
## Usage ## Usage
At boot the script with read the __/mnt/data/ssh/authorized_keys__ file and add the content to UDM's __/root/.ssh/authorized_keys__ At boot the script with read the **/mnt/data/ssh/authorized_keys** file and add the content to UDM's **/root/.ssh/authorized_keys**
Manual run: Manual run: