DOS batch file: SSH connection, how to script to enter password when prompted?

Hi,
I need to create a batch file on a Windows 2000 box which connects to linux box running an ssh (and ftp) server and uploads files in continuous loop for testing our connection.

I'm using putty's pscp to connect to transfer the files over. The problem is there is no way to specify the password on the pscp commandline. So I need to simulate its entry in the batch file as I can't have the user entering it manually everytime. This batch file isn't meant to be secure so yes the actual password will be exposed in the batch file. How can I do this? Here's what I have so far:

Featured Post

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Introduction
Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like:
(1) Setup files have been updated whose changes can take effect only after a reboot …

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …

This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…