Configuring SSH Public Key Authentication on CentOS 6.4
Having to use password authentication each time you wish to access your server can be a serious pain. Not only does it require extra keystrokes, it is also less secure and far more susceptible to successful brute-force attacks. Enter public-key authentication, were instead you use asymmetric cryptography. The first thing to do is generate a key-pair on your client machine, you can optional provide a passphrase to unlock the private key if you so wish.
We now need to add the clients public-key to the list of authorised keys for the server’s specifed user.
Once this has been successfully copied across we just need to enable the daemon to use the new form of authentication. This will be the last time you will have to authenticate via password.