Update einrichtung_client.sh

This commit is contained in:
Hobbabobba
2021-10-16 11:43:11 +02:00
committed by GitHub
parent ee25d24d18
commit 18260bd61c

View File

@@ -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"