From 4d509ed872aea19a2284f02f367224c6472ff811 Mon Sep 17 00:00:00 2001 From: Hobbabobba Date: Sat, 25 Nov 2023 19:40:45 +0100 Subject: [PATCH] password gestrichen --- einrichtung_client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/einrichtung_client.sh b/einrichtung_client.sh index ea3562b..4554a62 100644 --- a/einrichtung_client.sh +++ b/einrichtung_client.sh @@ -1,6 +1,6 @@ !/bin/bash apt install curl wget -echo -e "PubkeyAuthentication yes \nPasswordAuthentication yes \nAuthorizedKeysCommand /usr/local/bin/userkeys.sh \nAuthorizedKeysCommandUser nobody\nPubkeyAcceptedKeyTypes +ssh-rsa\nHostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config +echo -e "PubkeyAuthentication yes \nPasswordAuthentication no \nAuthorizedKeysCommand /usr/local/bin/userkeys.sh \nAuthorizedKeysCommandUser nobody\nPubkeyAcceptedKeyTypes +ssh-rsa\nHostKeyAlgorithms +ssh-rsa" >> /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