From 6e77b4cb3cd7e0aa84962b2ac22fe66a660eb572 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 21 Nov 2021 09:40:37 +0100 Subject: [PATCH] Update copy-keys.sh script and SSH configuration --- README.md | 9 ++++++--- copy-keys.sh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb8683f..d05d2e2 100644 --- a/README.md +++ b/README.md @@ -88,9 +88,12 @@ On va utiliser plutôt `ProxyJump`. Dans la configuration SSH : ``` -# Use a proxy jump server to log on all Aurore inventory -Host 10.128.0.* *.adm.auro.re - ProxyJump passerelle.auro.re +Host *.adm.auro.re *.pve.auro.re + # Accept new host keys + StrictHostKeyChecking accept-new + + # Use routeur-aurore to connect to administration VLANs + ProxyJump routeur-aurore.auro.re ``` Il faut sa clé SSH configurée sur le serveur que l'on déploit. diff --git a/copy-keys.sh b/copy-keys.sh index 6aa1bb6..857e1a5 100755 --- a/copy-keys.sh +++ b/copy-keys.sh @@ -15,6 +15,6 @@ for host in $HOSTS; do # sshpass can be used for non-interactive password authentication. # place your password in ldap-password.txt. - SSHPASS=${passwd} sshpass -v -e ssh-copy-id -i ~/.ssh/id_rsa "$host" + SSHPASS=${passwd} sshpass -v -e ssh-copy-id "$host" done