You can use Scp or Rsync for transfering data between two server .Enable passwordless login between the server.Even Manually you can apply password using sshpass .But it was not secure method of using it in shell script
sshpass -p 'password' scp user-name@scp-server-ip-address
ath-of-the-file/file-name /destination-location