The SSH Server version looks OK. Perhaps there is a directory in your fileset where previously there were only files. Using a zip file is probably the best solution.
-Rob A > -----Original Message----- > From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] > Sent: Friday, July 29, 2005 12:02 AM > To: Ant Users List > Subject: Re: scp problem: received directory without -r > > > Hi, > > Anderson, Rob (Global Trade) wrote: > > >What version of SSH server is on the remote end ? I seem to > remember this error from something, but I don't think I saw > it using the scp Ant task. It looks like the fileset may be > sending directories, and not just files. I would suggest > creating a zip or tar.gz with the fileset first. Then scp to > remote, and use sshexec to unpack the archive on the remote side. > > > When I log onto sourceforge.net server, I tried getting the > version with > 'ssh -V' > Result: OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, Open SSL 0x00090701f > Can it be the problem ? > > What's strange is that the task was working perfectly before > (I used it > for several months). > > One other think I have to check is when I updated Eclipse > from 3.0.1 to > 3.0.2. > I thought I was still using 3.0.1 but apparently I am with 3.0.2 now. > > I will try the zip idea if I don't get an other answer from > sourceforge > support :) > > Thanks for the answer. > > > > >Hope this helps, > > > >-Rob Anderson > > > > > > > >>>Hi, > >>> > >>>I have a build file to update a website from my own pc > >>> > >>> > >>using <scp> task. > >> > >> > >>>It was working perfectly until more than a week ago. > >>>I now have an error message when it tries to upload a file in a > >>>subdirectory : > >>>"server indicated an error: scp: protocol error: received > directory > >>>without -r" > >>> > >>>The website is hosted by sourceforge.net and I don't have > >>> > >>> > >>control over > >> > >> > >>>what is installed. > >>>I have submitted a support request > >>> > >>> > >>> > >>(http://sourceforge.net/tracker/?func=detail&aid=1240161&group > >> > >> > >_id=1&atid=200001) > > > > > >>but I don't get an answer yet. > >> > >>Does anyone know where the problem can come from ? Or a workaround ? > >> > >>For info, the ant task I am using : > >><scp > >> > >>todir="${ssh.user}:[EMAIL PROTECTED]:/ho > me/groups/j/jm/jmol/htdocs" > >> > >> trust="yes" failonerror="true"> > >> <fileset dir="${from.dir}"> > >> <modified> > >> <param name="cache.cachefile" > >> value="${tmp.cache}"/> > >> </modified> > >> </fileset> > >></scp> > >> > >> > >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
