Cisco Cisco StadiumVision Director Manuale Di Manutenzione

Pagina di 21
 
 
© 2011 Cisco Systems, Inc. All rights reserved. 
Page 12 of 21 
Setting Up Public and Private Keys for the Backup and Restore Task 
Follow these steps to set up the ssh keys to allow the primary server to copy files 
into the secondary server. 
1.  On the primary server, run sudo ssh-keygen and when prompted to ‘Enter 
passphrase’ and ‘Enter same passphrase again’ press Enter. 
 
 
 
 
[jdoe@ primary-sv ~] $ sudo ssh-keygen 
Password: 
Generating public/private rsa1 key pair. Enter file in which to save the key (/root/.ssh/identity): /root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in 
/root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 
22:bc:0b:fe:f5:06:1d:c0:05:ea:59:09:e3:07:8a:8c  
 
2.  Enter the following commands, replacing 10.10.10.10 with the IP address of the 
secondary SV server, and replacing ‘backupUser’  with the backup user created 
in the 
 step. 
 
The password prompt in this section is relational to what was set for the 
user in the 
 section. Also, you may be prompted to 
save the RSA key fingerprint of the server. It is safe to say yes if this 
occurs. 
 
[jdoe@ primary-sv ~] $ sudo  ssh-copy-id -i /root/.ssh/id_rsa backupUser@10.10.10.10 
manufac@10.10.10.10's password: 
 
3.  Now try logging into the machine, with "ssh ' backupUser@10.10.10.10’, and 
check in: 
 
  .ssh/authorized_keys 
 
to make sure you haven't added extra keys that you weren't expecting. 
 
4.  To verify that this is now working correctly, try to have root log in to the 
secondary server by entering the following commands: 
 
[jdoe@ primary-sv ~] $ sudo scp /etc/hosts backupUser@10.10.10.21:/tmp 
hosts 100%   43     0.0KB/s   00:00 
 
 
 If prompted for a password with the prompt ‘Password:’, it is relational to 
the sudo action so specify your user’s password