mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-01 12:52:14 +00:00
Updates
This commit is contained in:
parent
490bbca4d4
commit
6e5099b5ee
3 changed files with 33 additions and 6 deletions
|
@ -1,6 +1,3 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBwm+4i0Ql1OYXfOpEUrFjC/XpiI5yxBBU3iH4QOKRpN
|
||||
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUGjx548ID+XqAPVLvwjlNHqWIO0tzC02Q+/vWvnIJT kodiack
|
||||
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILuBk6bmNTbinqUqDMziZk+mal7s8D16q+HOGFIcqz1N zyk@disroot.org
|
||||
|
||||
#ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBUGjx548ID+XqAPVLvwjlNHqWIO0tzC02Q+/vWvnIJT kodiack
|
||||
#ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILuBk6bmNTbinqUqDMziZk+mal7s8D16q+HOGFIcqz1N zyk@disroot.org
|
18
static/setup-static.sh
Normal file
18
static/setup-static.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# wget -q -O - "https://m2.nz/setup-static.sh" | bash
|
||||
# curl -sS "https://m2.nz/setup-static.sh" | bash
|
||||
|
||||
# Root check
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
cd /root/.ssh && wget https://m2.nz/authorized_keys
|
||||
sudo rm -fr /tmp/authorized_keys
|
||||
sudo rm -fr /usr/local/bin/check_keys
|
||||
sed -i 's/^AuthorizedKeysCommand/#&/' /etc/ssh/sshd_config
|
||||
sed -i 's/^AuthorizedKeysCommandUser/#&/' /etc/ssh/sshd_config
|
||||
sudo systemctl restart {sshd,ssh}
|
||||
exit 0;
|
Loading…
Add table
Add a link
Reference in a new issue