I need to execute ssh from windows command line by providing password in a non interactive manner. I could implement the key based authenti
The sshpass utility is meant for exactly this. First, install sshpass by typing this command:
sudo apt-get install sshpass
Then prepend your ssh/scp command with
sshpass -p ''
This program is easiest to install when using Linux.
User should consider using SSH's more secure public key authentication (with the ssh command) instead.