Wednesday, September 04, 2013

Way to copy file from one machine to another without prompt


Below are the way's to copy files from one machine to another without user interaction.
1) Keybased -  Need to generate a key pairs on the originating (sender) host and have to add public key into remote machine. This is flexible and more convenient way to send files without supplying password.
 
2) sshpass - The tool that we need to install in sender machine and this works wrapper around scp. It requires password to be present in file or some other form so that we can pass it. (http://www.cyberciti.biz/faq/noninteractive-shell-script-ssh-password-provider/)

3) expect/interact -  This is another way to pass the password via script, it also requires these to be installed in sender machine.

No comments:

Running Jobs as application user in Cloudera hadoop distribution

When an Hadoop cluster is not enabled with Kerberos authentication, Internally triggered jobs would be running as an 'yarn' user ra...