mirror of
https://github.com/fire1ce/UDM-Persistent-SSH-Keys.git
synced 2023-10-10 13:36:54 +02:00
init
This commit is contained in:
parent
e666733d66
commit
9911b08db4
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
user_authorized_keys_file="/mnt/data/ssh/authorized_keys"
|
user_authorized_keys_file="/mnt/data/ssh/authorized_keys"
|
||||||
|
|
||||||
curl -O https://raw.githubusercontent.com/fire1ce/UDM-Persistent-SSH-Keys/main/99-ssh-keys.sh
|
curl -sO https://raw.githubusercontent.com/fire1ce/UDM-Persistent-SSH-Keys/main/99-ssh-keys.sh
|
||||||
mv 99-ssh-keys.sh /mnt/data/on_boot.d/99-ssh-keys.sh
|
mv 99-ssh-keys.sh /mnt/data/on_boot.d/99-ssh-keys.sh
|
||||||
chmod +x /mnt/data/on_boot.d/99-ssh-keys.sh
|
chmod +x /mnt/data/on_boot.d/99-ssh-keys.sh
|
||||||
echo "99-ssh-keys.sh installed"
|
echo "99-ssh-keys.sh installed"
|
||||||
@ -14,6 +14,6 @@ fi
|
|||||||
|
|
||||||
chmod 0644 $user_authorized_keys_file
|
chmod 0644 $user_authorized_keys_file
|
||||||
|
|
||||||
echo "Add you public keys to $user_authorized_keys_file"
|
echo "==> Add you public keys to $user_authorized_keys_file"
|
||||||
echo "done."
|
echo "==> Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user