Files
keyserver/einrichtung_client.sh
2021-10-16 11:36:50 +02:00

7 lines
278 B
Bash

!/bin/bash
apt install curl wget
echo -e "PubkeyAuthentication yes \nPasswordAuthentication yes \nAuthorizedKeysCommand /usr/local/bin/userkeys.sh \nAuthorizedKeysCommandUser nobody" >> /etc/ssh/sshd_config
chmod a+x /usr/local/bin/userkeys.sh
service ssh restart
echo "FERTIG"