Generate key on the client side:
That command will generate key with rsa encryption. To choose dsa encryption, add parameter “-t dsa”.
$ ssh-keygen -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.
$ scp [email protected]:/home/didik/.ssh/id_dsa.pub . $ cat id_dsa.pub >> .ssh/authorized_keys
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.