SSh under windows to execute a script with embeded password
Posted on 2005-03-15
probably a simply answer, but I am not a linux security expert. So sorry.
I am running a script on Windows server which is sending a file to a linux (knoppix based distr.) server and then executing ashell .sh ascript on the target linux server.
to copy the file I use the PSCP.exe which allows me to specify password like:
pscp.exe -pw password file_to_be_transferred.txt email@example.com:/temp
It is fine.
Now I need to do something simmilar to run the script. But the ssh.exe which I got from winscp (or putty?) does not allow me to specify password.
I wish I can write:
ssh.exe -pw password firstname.lastname@example.org 'thefiletobeexecuted.sh'
Is there any command line tool for windows which will allow me this?