Using SCP in a script

I need to use scp command in a script, and it should not prompt me for the password.

for eg: scp $a <i.p address>:

After executing this it is asking the password for that ip address.

Is to possible to prevent it ?..ie initialising the password initially or somthing lik tha?

please check if ssh is setup.

how do i confirm whether ssh is set up or not??

sorry i have no idea about that

Please check your $HOME if you dont see .ssh dir then it means you dont have ssh setup.

ok i checked i dont have ssh setup.. while trying to scp, it will show rsa finger print.
so how to proceed

chk this out http://www.unix.com/shell-programming-scripting/29023-how-setup-ssh-between-4-hosts.html