Main Menu
Home
Articles, Tips, Solutions
Contact
Sitemap
Downloads
Login Form





Lost Password?
No account yet? Register
To add contents please register and login.

Index arrow Server arrow Server installation

SSH authentication between hosts PDF Print E-mail
Setup SSH Key authentication between linux (ESX) servers
bulletInstructions:
bulletGenerate public/private dsa key pair.:
bullet#ssh-keygen –t dsa       Accept default file location and specify no passphrase
bulletThe files id_dsa and id_dsa.pub are created in the  /root/.ssh directory (you can verify wit ls -la)
bulletCopy the .pub file into the file authorized_keys: #cp id_dsa.pub authorized_keys
bulletrun #ssh YourServername     Accept the key in the dialog
bulletAn entry for your server will be added to the file /root/.ssh/known_hosts is
In the case you move or rename servers you should delete this entry from the file
bulletFor verification run #ssh YourServername again. You should not be prompted! If are prompted  for a password there is something wrong and the backup scripts will not work!
bulletRun above steps also on your remote servers.
Copy the public key to all servers with scp. Make sure the remote server is listed in the /etc/hosts file or you have a proper dns resolution.
#scp /root/.ssh/id_dsa.pub esx002:/root/.ssh/id_dsa_esx001.pub   Use the servername in the destination file for identification.
bulletscp uses the same passwod as ssh
bulletOn all servers add the public keys to your to the authorized_keys file:
#cat id_dsa_esx001.pub >> authorized_keys
#cat id_dsa_esx002.pub >> authorized_keys
bulletTest the keys by running ssh with the remoteservers name. There shouldn't be any prompt for a password. You can also try to copy some files with scp from one server to another.
 
 

Design: Digital Eye Template