I am having a problem authenticating using sftp2 from a batch file I run. I run this batch file from home computer (win2k) and it sends my reports to a computer at my office. The batch file goes like:
sftp2 -B "c:\upload.sftp2"
It then opens upload.sftp2, which contains:
The problem is when it is trying to "open my_username@my_server". The error message is:
Opening connection to my_username@my_server
Warning: Failed to authenticate.
Disconnected; no more authentication methods available (No further authentication methods available.).
The problem first started when I upgraded my ssh client at home to a newer version, from 2.4 to 3.2. I am not sure what server version I am using, but it supports version 2 of the ssh protocol. How can I find my ssh server version? The problem does not occur with client version 2.4.
The REALLY strange thing is that if I execute the batch file at a command prompt, line by line, the problem does not occur. If I were to type:
It has no problems. I would really like to use the newer client version because it has a few new features. I don't know if my ssh server needs to be updated because I can't find a version. Thanks for any help you can provide.