You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by SMETS Thomas <Th...@post.be> on 2005/07/14 15:08:46 UTC

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:pwd@host:/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.