How to prvenent giving password run time in schell scripting?

Hi

I'm copying around 20 vi files from solaris server-A to server-B using 'scp' command.I have included all 20 scp commands in one shell script. Proplem is, while executing each scp command its prompting for my NIS password of server A. Please see below

How to get rid of password prompt.???

scp uses ssh.
You can avoid multiple invocation (and authentication) by means of tar over ssh.
With rsync (extra package, usually in /opt/csw/bin/) you can do the same, and further avoid unnecessary copying (if destination file is already present and identical).
Finally you can generate ssh keys that can do authentication.
Details have been posted in several other articles already.