Generate key on the client side:
That command will generate key with rsa encryption. To choose dsa encryption, add parameter “-t dsa”.
Then, just click “Enter” if you are asked for passphrase. It is like you use an empty passphrase.
Copy that generated public key to host side, computer which will be used for remote.
That’s all. Now you can login to client computer without worrying to be asked for a password. It is useful for deploying automatic scripts or programs.