From e29998ff7dfa6d79be643e034ffa1b610d2211e0 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 5 May 2025 17:23:44 -0400 Subject: [PATCH] deploy-initial: use server-specific authorized_keys --- deploy-initial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-initial b/deploy-initial index 1af81e2..119d687 100755 --- a/deploy-initial +++ b/deploy-initial @@ -50,7 +50,7 @@ fi ssh $remote mkdir -vp /mnt/etc/sysconfig rsync -cpv --chmod 644 etc/sysconfig/chronyd $remote:/mnt/etc/sysconfig/chronyd -rsync -cv authorized_keys $remote:/mnt/root/.ssh/authorized_keys +rsync -cv ${hosts_authorized_keys[$host]:-authorized_keys} $remote:/mnt/root/.ssh/authorized_keys cp etc/ssh/sshd_config etc/ssh/sshd_config.tmp sed -i "s/{{ssh_users}}/${hosts_ssh_users[$host]:-root}/g" etc/ssh/sshd_config.tmp rsync -cv etc/ssh/sshd_config.tmp $remote:/mnt/etc/ssh/sshd_config