Shell script which copy the file from another server to my box using SFTP without prompting for a password
I want to write a shell script which copy the file from another server to my box using SFTP without prompting for a password as I have already made private keygen for password on server. Can you provide me the example script to do it.