mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-05-12 11:42:18 -04:00
deploy-initial: use server-specific authorized_keys
This commit is contained in:
parent
90a7780b5e
commit
e29998ff7d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ fi
|
||||||
ssh $remote mkdir -vp /mnt/etc/sysconfig
|
ssh $remote mkdir -vp /mnt/etc/sysconfig
|
||||||
rsync -cpv --chmod 644 etc/sysconfig/chronyd $remote:/mnt/etc/sysconfig/chronyd
|
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
|
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
|
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
|
rsync -cv etc/ssh/sshd_config.tmp $remote:/mnt/etc/ssh/sshd_config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue