I can copy the rsa key to the remote server for passwordless log-in. But I was told that there is another way to add this functionality using ssh-agent. I have run the commands generated by ssh-agent command. I did tried to add the key using ssh-add
$ ssh-add Enter passphrase for /home/shantanu/.ssh/id_dsa: Identity added: /home/shantanu/.ssh/id_dsa (/home/shantanu/.ssh/id_dsa)
Does ssh-agent work the way I am trying to make it work?