waiterm,
In my previous place of employment, I wrote numerous shell scripts that do what you want without Expect or Expect. I accomplished this by using key based authentication instead of passwords. I am sure the same would be possible with a batch file. If you need help creating and configuring key based authentication, you can look at http://www.openssh.org or reply here and I will post step by step instructions.
Cheers - L~R | [reply] |
If I'm honest I could probably do with a step-by-step guide, as you can probably tell my programming skills aren't that great yet. I greatly appreciate any help you can give me!!
| [reply] |
waiterm,
I am assuming the Win32 machine is the client. You do not indicate what the server side is or what implementation of SSH (e.g. OpenSSH) it is using. To provide step by step instructions, I would need that information - and keep in mind this is not a Perl solution.
If you are using PuTTY for your client, these instructions should get you started. The basic idea is to generate keys on the client and then stick them in the authorized file on the server, but how to do that varies depending on your specific situation.
Cheers - L~R
| [reply] |