forked from sneak/hacks
testing more
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt update && apt install -y curl
|
||||
|
||||
KEY_URL="https://sneak.cloud/authorized_keys"
|
||||
curl -fLo /root/.ssh/authorized_keys --create-dirs $KEY_URL && \
|
||||
passwd -d root
|
||||
|
||||
curl -fLo /home/pi/.ssh/authorized_keys --create-dirs $KEY_URL && \
|
||||
passwd -d pi
|
||||
|
||||
chown -R pi:pi /home/pi/.ssh
|
||||
Reference in New Issue
Block a user