This commit is contained in:
Stas Yakobov 2022-07-23 16:53:21 +03:00
parent bc8076f633
commit 983cd53cd1

View File

@ -14,13 +14,13 @@ This can be accomplished with a boot script. Flow this guide: [UDM / UDMPro Boot
The script was tested on UDM PRO The script was tested on UDM PRO
```bash ```shell
curl https://raw.githubusercontent.com/fire1ce/UDM-Persistent-SSH-Keys/main/install.sh | sh curl https://raw.githubusercontent.com/fire1ce/UDM-Persistent-SSH-Keys/main/install.sh | sh
``` ```
Add you public RSA keys to: Add you public RSA keys to:
```bash ```shell
/mnt/data/ssh/authorized_keys /mnt/data/ssh/authorized_keys
``` ```
@ -28,13 +28,13 @@ Add you public RSA keys to:
Delete the 99-ssh-keys.sh file Delete the 99-ssh-keys.sh file
```bash ```shell
rm -rf /mnt/data/on_boot.d/99-ssh-keys.sh rm -rf /mnt/data/on_boot.d/99-ssh-keys.sh
``` ```
Delete your authorized_keys file Delete your authorized_keys file
```bash ```shell
rm -rf /mnt/data/ssh/authorized_keys rm -rf /mnt/data/ssh/authorized_keys
``` ```
@ -44,6 +44,6 @@ At boot the script with read the **/mnt/data/ssh/authorized_keys** file and add
Manual run: Manual run:
```bash ```shell
/mnt/data/on_boot.d/99-ssh-keys.sh /mnt/data/on_boot.d/99-ssh-keys.sh
``` ```