Line 192: |
Line 192: |
| | | |
| [root@backupserver ~]# su -s /bin/bash backuppc | | [root@backupserver ~]# su -s /bin/bash backuppc |
− | bash-3.2$ ssh-keygen -t rsa -b 2048 | + | bash-4.1$ ssh-keygen -t rsa -b 2048 |
− | (utiliser une phrase de passe vide) | + | Generating public/private rsa key pair. |
− | bash-3.2$ cat /var/lib/BackupPC/.ssh/id_rsa.pub | ssh root@myserver.mydomain.com \ | + | Enter file in which to save the key (/var/lib/BackupPC/.ssh/id_rsa): |
| + | Accepter le nom de fichier par défaut. |
| + | Created directory '/var/lib/BackupPC/.ssh'. |
| + | Enter passphrase (empty for no passphrase): |
| + | Utiliser une phrase de passe vide. |
| + | Enter same passphrase again: |
| + | Your identification has been saved in /var/lib/BackupPC/.ssh/id_rsa. |
| + | Your public key has been saved in /var/lib/BackupPC/.ssh/id_rsa.pub. |
| + | The key fingerprint is: |
| + | 01:23:45:67:89:ab:cd:de:fg:hi:jk:lm:no:pq:rs:tu backuppc@backupserver |
| + | The key's randomart image is: |
| + | +--[ RSA 2048]----+ |
| + | | | |
| + | | | |
| + | | | |
| + | +-----------------+ |
| + | |
| + | bash-4.1$ cat /var/lib/BackupPC/.ssh/id_rsa.pub | ssh -p 1234 root@myserver.mydomain.com \ #-p si vous utilisez un port différent du conventionnel 22 |
| "cat >> /root/.ssh/authorized_keys2" | | "cat >> /root/.ssh/authorized_keys2" |
− | (accepter la clé de l'hôte sauvegardé) | + | The authenticity of host '[192.168.x.y]:1234(''numéro du port si différent de 22'') ([192.168.x.y]:1234)' can't be established. |
| + | RSA key fingerprint is ab:cd:de:fg:hi:jk:lm:no:pq:rs:tu:01:23:45:67:89. |
| + | Are you sure you want to continue connecting (yes/no)? |
| + | Accepter la clé de l'hôte sauvegardeur (yes). |
| + | Warning: Permanently added '[192.168.x.y]:1234' (RSA) to the list of known hosts. |
| + | root@192.168.x.y's password: |
| + | Entrer le mot de passe root du serveur sauvegardé. |
| | | |
| ====Restaurer ou migrer un serveur KOOZALI SME ==== | | ====Restaurer ou migrer un serveur KOOZALI SME ==== |