Update copy-keys.sh script and SSH configuration
This commit is contained in:
parent
4ccd33eec1
commit
6e77b4cb3c
2 changed files with 7 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue