Cygwin+OpenSSH on XP: Scheduled SFTP job fails - but manual runs fine



I have Cygwin+OpenSSH installed on Windows XP workstation.

Simple SFTP process (batch file) runs fine when launched from the
Command Prompt and fails when launched by a Scheduler from Novell
Desktop Management. Scheduled job uses _exactly the same_ batch file
and runs as Interactive User impersonation.

WhoAmI embedded in the batch file returns the same user string. Cygwin
itself called from a scheduled job shows the same user id in the
prompt as when launched directly from the desktop icon.

I get the following error from a scheduled sftp job:

"Permission denied (publickey,keyboard-interactive).
Connection closed"

Any suggestions for further troubleshooting?

TIA, Eugene
.



Relevant Pages

  • Re: Application starts too soon
    ... The application runs froma a batch file. ... The batch file has my exe followed by a Shutdown command ... think the app tries to run, encounters an error, and exits. ... the app runs fine if I manually launch it after the command prompt ...
    (microsoft.public.windowsxp.embedded)
  • Re: DOS Environment not working
    ... It just shows the variables set by windows on startup, ... The batch file does not fail because I ... installed a errorlevel statement to echo a message.... ... I run the batchfile at the command prompt, but when I check the variables: ...
    (microsoft.public.windowsxp.general)
  • Re: Script to MOVE file and leave a Shortcut to new location
    ... It also avoids re-creating any already existing shortcuts, so you could run it after your subsequent robocopy cleanup runs. ... @echo off ... Since your description about the source and target folders is rather vague, you may have to tweak the above batch file a little in order to suit your environment. ... You must test the batch file from the Command Prompt. ...
    (microsoft.public.windows.server.scripting)
  • Re: How to program Enable, Disable drivers?
    ... Use this batch file to enable or disable a device ... setlocal enabledelayedexpansion ... echo Syntax: Device enable / disable ... Open a Command Prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Please help me with a batch file.
    ... The way I did the batch file, ... > ..and I run it from teh command prompt window by typing: X:\mybatchfile.bat. ... > the window to close when finished. ... >> The video files to encode are in folder called: ...
    (microsoft.public.win2000.cmdprompt.admin)