Update einrichtung_client.sh
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
!/bin/bash
|
||||
apt install curl wget
|
||||
echo -e "PubkeyAuthentication yes \nPasswordAuthentication yes \nAuthorizedKeysCommand /usr/local/bin/userkeys.sh \nAuthorizedKeysCommandUser nobody" >> /etc/ssh/sshd_config
|
||||
wget -P /usr/local/bin https://raw.githubusercontent.com/Hobbabobba/keyserver/main/userkeys.sh
|
||||
chmod a+x /usr/local/bin/userkeys.sh
|
||||
service ssh restart
|
||||
echo "FERTIG"
|
||||
|
||||
Reference in New Issue
Block a user