my question is here while am copying the files from one server to another server using the scp command. while am running in putty it was asking for password of two sever machines.Is there any other way to copy the files without password or with passwords means how can i pass in command.Regards,Sindhu. 
how to pass the password of two server in shell
shell script
By far the best way is to use public/private key pair authentication. If you don't already have a key pair on the machine from which you are running putty you should create one using puttygen, save the private key locally and provide the path to it in putty at Connection/SSH/Auth, then save the public key in the ~/.ssh/authorized_keys file of the machine to which you are connecting with putty. Then you need to save the public key of this machine (probably at ~/.ssh/id_rsa.pub) in the ~/.ssh/authorized_keys file of the user & machine to which it connects to run scp.