I got a one to one reply from somebody. My problem came from the fact that the host I was connecting to did have a lot of messages echoed from the .bashrc This was apparently confusing the scp command.
\T, > -----Original Message----- > From: SMETS Thomas [mailto:[EMAIL PROTECTED] > Sent: donderdag 14 juli 2005 15:09 > To: user@ant.apache.org > Cc: WESSELS Nicky > Subject: Problem with SCP > > > > Dear, > > I manage to ssh to a host and execute commands on the host > but it seems I cannot do "scopy" to that same host. > > <target name="copy" description="Copies a file to the > Remote server" > > <sshexec host="myHost" > username="user" > password="pwd" > command="date > Somefile.txt" > verbose="true" > trust="true" /> > <scp todir="user:[EMAIL PROTECTED]:/home/grinder12" > file="performance.properties" > verbose="true" > knownhosts="host" > trust="true"/> > </target> > > The out come of it is as follows : > > copy: > [sshexec] Connecting to host:22 > [sshexec] Classpath found.. > [scp] Connecting to host:22 > > BUILD FAILED > C:\test\performance\build.xml:25: unknown response, code 67 > message: lasspath found.. > > > I have not yet found any post relevant to a similar problem > Any idea ... ? > > Tia, > > \T, > > > STRICTLY PERSONAL AND CONFIDENTIAL > This message may contain confidential and proprietary > material for the sole use of the intended recipient. Any > review or distribution by others is strictly prohibited. If > you are not the intended recipient please contact the sender > and delete all copies. > > Dit bericht is enkel bestemd voor de aangeduide ontvangers en > kan vertrouwelijke informatie bevatten. Als u niet de > ontvanger bent, dan mag u de inhoud van dit bericht niet > bekendmaken noch kopiëren. Als u dit bericht per vergissing > ontvangen heeft, gelieve er de afzender of De Post > onmiddellijk van op de hoogte te brengen en het bericht > vervolgens te verwijderen. > > Ce message est uniquement destiné aux destinataires indiqués > et peut contenir des informations confidentielles. Si vous > n'êtes pas le destinataire, vous ne devez pas révéler le > contenu de ce message ou en prendre copie. Si vous avez reçu > ce message par erreur, veuillez en informer l'expéditeur, ou > La Poste immédiatement, avant de le supprimer. > STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies. Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht niet bekendmaken noch kopiëren. Als u dit bericht per vergissing ontvangen heeft, gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het bericht vervolgens te verwijderen. Ce message est uniquement destiné aux destinataires indiqués et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire, vous ne devez pas révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le supprimer.