7 lines
278 B
Bash
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"
|