Try a later version of jsch. I am using jsch-0.1.28-rc4.jar and I get a reasonable error when trying to copy a file to a remote directory that does not exist.
BUILD FAILED H:\scptest.xml:6: com.jcraft.jsch.JSchException: 2: syserr: No such file or directory, file: /home/rande4/no/directory/path/file -Rob Anderson > -----Original Message----- > From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 04, 2006 10:22 AM > To: Ant Users List > Subject: Re: scp multiple files getting error > > ant 1.6.5 + fixes for sshexec > jsch jsch-0.1.24.jar > > On 5/4/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > > > > What version of Ant and jsch are you using? > > > > -Rob A > > > > > -----Original Message----- > > > From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, May 04, 2006 6:45 AM > > > To: ant user > > > Subject: scp multiple files getting error > > > > > > I am executing scp from ant and getting the error message "No > > > response from server". > > > I have used scp successfully before. This time it is tranfering > > > multiple files from winxp to unix. (transferring a > single file is > > > working fine.) The code snippet follows: > > > > > > <scp todir="${u}:[EMAIL PROTECTED]:${patch.target.dir}" > > > trust="true" verbose="true"> > > > <fileset dir="${fpat.home.dir}/${fpat.source.dir}"> > > > <include name="**/*"/> > > > </fileset> > > > </scp> > > > > > > I checked to see if there is an option or setting on scp > that could > > > help, but did not find any. > > > Is there a setting on the service that supports scp? > > > > > > I found out that the problem was that the todir value was > not found > > > on the target system. > > > > > > Could we get a better error message? > > > "No response from server" is pretty general. > > > > > > --glenn > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional > > commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]