Update copy-keys.sh script and SSH configuration

This commit is contained in:
Alexandre Iooss 2021-11-21 09:40:37 +01:00
parent 4ccd33eec1
commit 6e77b4cb3c
2 changed files with 7 additions and 4 deletions

View file

@ -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.

View file

@ -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