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. 

Hope this helps,

-Rob Anderson

> -----Original Message-----
> From: Nicolas Vervelle [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 27, 2005 11:18 PM
> To: Ant Users List
> Subject: Re: scp problem: received directory without -r
> 
> 
> No one ? snif :'(
> 
> Nicolas Vervelle wrote:
> 
> > 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]:/home/groups/j/jm/jmol/htdocs" 
>
>  trust="yes" failonerror="true">
>  <fileset dir="${from.dir}">
>    <modified>
>      <param name="cache.cachefile"
>        value="${tmp.cache}"/>
>    </modified>
>  </fileset>
> </scp>
>
> Thanks for any help
> Nicolas




---------------------------------------------------------------------
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]

Reply via email to