From 104e0f586d5ee06d7327933dfcb5bdd001d8151c Mon Sep 17 00:00:00 2001 From: terem42 <9478806+terem42@users.noreply.github.com> Date: Fri, 21 Apr 2023 10:00:39 +0200 Subject: [PATCH] added path password auth --- hetzner-debian11-zfs-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hetzner-debian11-zfs-setup.sh b/hetzner-debian11-zfs-setup.sh index 5a04880..2426927 100644 --- a/hetzner-debian11-zfs-setup.sh +++ b/hetzner-debian11-zfs-setup.sh @@ -727,7 +727,7 @@ chroot_execute "apt install --yes openssh-server net-tools" echo "======= setup OpenSSH ==========" mkdir -p "$c_zfs_mount_dir/root/.ssh/" cp /root/.ssh/authorized_keys "$c_zfs_mount_dir/root/.ssh/authorized_keys" -sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' "$c_zfs_mount_dir/etc/ssh/sshd_config" +#sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' "$c_zfs_mount_dir/etc/ssh/sshd_config" sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/g' "$c_zfs_mount_dir/etc/ssh/sshd_config" chroot_execute "rm /etc/ssh/ssh_host_*" chroot_execute "dpkg-reconfigure openssh-server -f noninteractive"