ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: The SCP task don't scp?! Help Please.
Date Tue, 11 Jul 2006 23:29:25 GMT
Yes. This could be the problem. If you specify the password in a
properties file you do not need to use the xml equivalent of the @
character, and no quotes. In other words, just put the unaltered
password in the properties file. This should work.

-Rob A 

> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com] 
> Sent: Tuesday, July 11, 2006 4:19 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
> 
> Also, I jut thought of this. I pass my password from the 
> loaded property file, however, my password has an embedded @ 
> sign it.  I have it it quotes as "word&#64;word" could this  
> be the cause?
> 
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Rob.Anderson@nike.com>
> Reply-To: "Ant Users List" <user@ant.apache.org>
> To: "Ant Users List" <user@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 13:40:51 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by 
> bay0-mc12-f19.bay0.hotmail.com with Microsoft 
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 13:42:23 -0700
> Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
> Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org) 
> (140.211.166.49)    by 
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com) 
> (146.197.27.91)   
>   by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 
> 13:42:20 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <mailto:user-unsubscribe@ant.apache.org>
> List-Help: <mailto:user-help@ant.apache.org>
> List-Post: <mailto:user@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
> X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC) 
> FILETIME=[4CE2F6B0:01C6A52A]
> X-WSS-ID: 68AAD29A1UG492280-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
> 
> What ssh server version are you using on the target host?
> 
> -Rob A
> 
>  > -----Original Message-----
>  > From: Res Pons [mailto:pons32@hotmail.com]  > Sent: 
> Tuesday, July 11, 2006 1:06 PM  > To: user@ant.apache.org  > 
> Subject: RE: The SCP task don't scp?! Help Please.
>  >
>  > I even simplified my build2.xml and stripped off my  > 
> build.properties to minimum bare values but still...
>  >
>  > <project name="Upload" default="scpuploadtest" basedir=".">  >  >
>  >   <property file="build/build.properties" />
>  >
>  >
>  >     <target name="scpuploadtest" description="Forces Anthill
>  > to build even if there aren't any changes" >  >
>  >         <echo message="" />
>  >
>  >         <echo message="" />
>  >
>  > 	<scp file="build.number"
>  > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" 
> trust="yes" />  >
>  >     </target>
>  >
>  >
>  >
>  > </project>
>  >
>  > -------------------------
>  >
>  > Here's the debug log:
>  >
>  > Apache Ant version 1.6.5 compiled on June 2 2005  > 
> Buildfile: build2.xml  > Adding reference: ant.PropertyHelper 
>  > Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre  > 
> Detected OS: Windows XP Adding reference: ant.ComponentHelper 
>  > Setting ro project property: ant.version -> Apache Ant  > 
> version 1.6.5 compiled on June 2 2005 Setting ro project  > 
> property: ant.file -> c:\scripts\build2.xml Adding reference:
>  > ant.projectHelper Adding reference: ant.parsing.context  > 
> Adding reference: ant.targets parsing buildfile  > 
> C:\scripts\build2.xml with URI =  > 
> file:///C:/scripts/build2.xml Setting ro project property:
>  > ant.project.name -> Upload Adding reference: Upload 
> Setting  > ro project property: ant.file.Upload -> 
> C:\scripts\build2.xml  > Project base dir set to: C:\scripts  
> > +Target:
>  > +Target: scpuploadtest
>  > [property] Loading C:\scripts\build\build.properties 
> Setting  > project property: sw.pw -> xxxxxxxxx Setting 
> project  > property: sw.usr -> pons32 Setting project property:
>  > tomcat.home.dir -> /Tomcat Setting project property:
>  > ssh.host.sw -> sw.mydomain.net Setting project property:
>  > sw.home -> /export/home/pons32 Attempting to create object 
> of  > type org.apache.tools.ant.helper.DefaultExecutor
>  > Adding reference: ant.executor
>  > Build sequence for target(s) `scpuploadtest' is  > 
> [scpuploadtest] Complete build sequence is [scpuploadtest, ]  
> >  > scpuploadtest:
>  >
>  >
>  >       [scp] Connecting to sidewinder.mydomain.net:22
>  >
>  > BUILD FAILED
>  > C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException: 
> Auth cancel
>  >         at
>  > 
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:187)
>  >         at
>  > 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>  >         at org.apache.tools.ant.Task.perform(Task.java:364)
>  >         at org.apache.tools.ant.Target.execute(Target.java:341)
>  >         at 
> org.apache.tools.ant.Target.performTasks(Target.java:369)
>  >         at
>  > 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>  >         at
>  > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>  >         at
>  > 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>  > cutor.java:40)
>  >         at
>  > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>  >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>  >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>  >         at 
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>  >         at 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>  > Caused by: com.jcraft.jsch.JSchException: Auth cancel
>  >         at com.jcraft.jsch.Session.connect(Unknown Source)
>  >         at com.jcraft.jsch.Session.connect(Unknown Source)
>  >         at
>  > 
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
>  > e.java:180)
>  >         at
>  > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
>  >         at
>  > 
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
>  >         ... 12 more
>  > --- Nested Exception ---
>  > com.jcraft.jsch.JSchException: Auth cancel
>  >         at com.jcraft.jsch.Session.connect(Unknown Source)
>  >         at com.jcraft.jsch.Session.connect(Unknown Source)
>  >         at
>  > 
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
>  > e.java:180)
>  >         at
>  > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
>  >         at
>  > 
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
>  >         at
>  > 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>  >         at org.apache.tools.ant.Task.perform(Task.java:364)
>  >         at org.apache.tools.ant.Target.execute(Target.java:341)
>  >         at 
> org.apache.tools.ant.Target.performTasks(Target.java:369)
>  >         at
>  > 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>  >         at
>  > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>  >         at
>  > 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>  > cutor.java:40)
>  >         at
>  > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>  >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>  >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>  >         at 
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>  >         at 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>  >
>  > Total time: 3 seconds
>  > c:\scripts>
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > ----Original Message Follows----
>  > From: "Anderson, Rob (Global Trade)" 
> <Rob.Anderson@nike.com>  > Reply-To: "Ant Users List" 
> <user@ant.apache.org>  > To: "Ant Users List" 
> <user@ant.apache.org>  > Subject: RE: The SCP task don't 
> scp?! Help Please.
>  > Date: Tue, 11 Jul 2006 11:26:21 -0700  > MIME-Version: 1.0 
>  > Received: from mail.apache.org ([209.237.227.199]) by  > 
> bay0-mc3-f16.bay0.hotmail.com with Microsoft  > 
> SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700  > 
> Received: (qmail 710 invoked by uid 500); 11 Jul 2006 
> 18:26:57 -0000  > Received: (qmail 699 invoked by uid 99); 11 
> Jul 2006 18:26:57 -0000  > Received: from asf.osuosl.org 
> (HELO asf.osuosl.org)
>  > (140.211.166.49)    by
>  > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 
> 11:26:57 -0700  > Received: pass (asf.osuosl.org: local 
> policy)  > Received: from [146.197.27.91] (HELO 
> barriere241.nike.com)  > (146.197.27.91)
>  >   by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
>  > 11:26:55 -0700
>  > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
>  > Mailing-List: contact user-help@ant.apache.org; run by 
> ezmlm  > Precedence: bulk  > List-Unsubscribe: 
> <mailto:user-unsubscribe@ant.apache.org>
>  > List-Help: <mailto:user-help@ant.apache.org>  > List-Post: 
> <mailto:user@ant.apache.org>  > List-Id: "Ant Users List" 
> <user.ant.apache.org>  > Delivered-To: mailing list 
> user@ant.apache.org  > X-ASF-Spam-Status: No, hits=0.6  > 
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
>  > X-Spam-Check-By: apache.org
>  > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
>  > X-MimeOLE: Produced By Microsoft Exchange V6.5  > 
> Content-class: urn:content-classes:message  > X-MS-Has-Attach:
>  > X-MS-TNEF-Correlator:
>  > Thread-Topic: The SCP task don't scp?! Help Please.
>  > Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
>  > X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)  > 
> FILETIME=[82542020:01C6A517]  > X-WSS-ID: 
> 68AD32C41UG437659-01-01  > X-Virus-Checked: Checked by ClamAV 
> on apache.org  > Return-Path: 
> user-return-57067-pons32=hotmail.com@ant.apache.org
>  >
>  > Not sure why it is not working for you. Please run:
>  > ant -debug -f build2.xml -Dfull.build.number=712 buildnum  
> >  > ... and send the output.
>  >
>  > -Rob A
>  >
>  >  > -----Original Message-----
>  >  > From: Res Pons [mailto:pons32@hotmail.com]  > Sent:
>  > Tuesday, July 11, 2006 11:06 AM  > To: user@ant.apache.org 
>  >  > Subject: RE: The SCP task don't scp?! Help Please.
>  >  >
>  >  > Basically I use either jsch-0.1.25.jar or 
> jsch-0.1.28.jar  > in  > my ant/lib but  > neither works.  
> Ant's website  > mentions, "This task has been  > tested with 
>  > jsch-0.1.2 to  > jsch-0.1.14."
>  >  >
>  >  > Here's a copy of my scp task:
>  >  >
>  >  > <scp
>  >  > file="${deploy.zip.dir}/build${full.build.number}/build${full.
>  >  > build.number}.zip"
>  >  > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
>  > trust="yes" />  >  > All the values for the properties are 
>  > loaded from my  > build.properties file.
>  >  >
>  >  > I wonder if I have to roll back to an older version of  
> > jsch,  > however, I  > remember I had to update them 
> because  > when I upgraded to Ant  > 1.6.5 this task  > 
> stopped working  > regardless of the version of jsch.
>  >  >
>  >  >
>  >  > ----Original Message Follows----
>  >  > From: "Anderson, Rob (Global Trade)"
>  > <Rob.Anderson@nike.com>  > Reply-To: "Ant Users List"
>  > <user@ant.apache.org>  > To: "Ant Users List"
>  > <user@ant.apache.org>  > Subject: RE: The SCP task don't  
> > scp?!  Help Please.
>  >  > Date: Tue, 11 Jul 2006 10:39:27 -0700  > MIME-Version: 
> 1.0  >  > Received: from mail.apache.org ([209.237.227.199]) 
> by  >  > bay0-mc12-f11.bay0.hotmail.com with Microsoft  >  > 
> SMTPSVC(6.0.3790.2444); Tue,  > 11 Jul 2006 10:40:22 -0700  > 
>  > Received: (qmail 10124 invoked by uid 500); 11 Jul 2006  > 
> 17:39:56 -0000  > Received: (qmail 10113 invoked by uid 99);  
> > 11 Jul 2006 17:39:56 -0000  > Received: from asf.osuosl.org 
>  > (HELO asf.osuosl.org)
>  >  > (140.211.166.49)    by
>  >  > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006  
> > 10:39:56 -0700  > Received: pass (asf.osuosl.org: local  > 
> policy)  > Received: from [146.197.27.91] (HELO  > 
> barriere241.nike.com)  > (146.197.27.91)
>  >  >   by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
>  >  > 10:39:55 -0700
>  >  > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
>  >  > Mailing-List: contact user-help@ant.apache.org; run by  
> > ezmlm  > Precedence: bulk  > List-Unsubscribe:
>  > <mailto:user-unsubscribe@ant.apache.org>
>  >  > List-Help: <mailto:user-help@ant.apache.org>  > List-Post:
>  > <mailto:user@ant.apache.org>  > List-Id: "Ant Users List"
>  > <user.ant.apache.org>  > Delivered-To: mailing list  > 
> user@ant.apache.org  > X-ASF-Spam-Status: No, hits=0.6  >  > 
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
>  >  > X-Spam-Check-By: apache.org
>  >  > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
>  >  > X-MimeOLE: Produced By Microsoft Exchange V6.5  >  > 
> Content-class: urn:content-classes:message  > X-MS-Has-Attach:
>  >  > X-MS-TNEF-Correlator:
>  >  > Thread-Topic: The SCP task don't scp?!  Help Please.
>  >  > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
>  >  > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)  
> >  > FILETIME=[F5433500:01C6A510]  > X-WSS-ID:
>  > 68AD3DDA1UG416368-01-01  > X-Virus-Checked: Checked by 
> ClamAV  > on apache.org  > Return-Path:
>  > user-return-57059-pons32=hotmail.com@ant.apache.org
>  >  >
>  >  > What are the contents of the jsch-0.1.28.zip file? 
> Please  > send the  > portion of your build.xml that shows 
> your usage  > of the scp task.
>  >  >
>  >  > -Rob Anderson
>  >  >
>  >  >  > -----Original Message-----
>  >  >  > From: Res Pons [mailto:pons32@hotmail.com]  >  > Sent:
>  > Tuesday, July 11, 2006 9:52 AM  >  > To: 
> user@ant.apache.org  > >  > Subject: The SCP task don't scp?! 
> Help Please.
>  >  >  >
>  >  >  > Hi all
>  >  >  >
>  >  >  > I downloaded the latest version of jsch-0.1.28.zip 
> from  >  >  > jcraft last night for the scp task.  Two questions:
>  >  >  >
>  >  >  > 1. Do I have to rename the jar file from  > 
> jsch-0.1.28.zip to  >  > jsch.jar or would ANT understand it  
> > with the version number  >  > embedded in it?
>  >  >  >
>  >  >  > 2. My SCP tasks have not run successfully in a long  
> > time and  >  > I can't tell what is wrong?  This is the error I get:
>  >  >  >
>  >  >  > C:\scripts>ant -f build2.xml -Dfull.build.number=712 
>  > buildnum  >  > Buildfile: build2.xml  >  >  >  > buildnum:
>  >  >  >
>  >  >  >      [echo] Local build number is: 725
>  >  >  >
>  >  >  >       [scp] Connecting to server.ourdomain.net:22
>  >  >  >
>  >  >  > BUILD FAILED
>  >  >  > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
>  >  > Auth cancel
>  >  >  >
>  >  >  > Total time: 3 seconds
>  >  >  >
>  >  >  > Help please! What am I doing wrong?
>  >  >  >
>  >  >  >
>  > _________________________________________________________________
>  >  >  > Don't just search. Find. Check out the new MSN Search!
>  >  >  > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >
>  > 
> ---------------------------------------------------------------------
>  >  >  > To unsubscribe, e-mail: 
> user-unsubscribe@ant.apache.org  > For  >  > additional 
> commands, e-mail:
>  > user-help@ant.apache.org  >  >  >  >  >  >  >  >  >
 > 
> ---------------------------------------------------------------------
>  >  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org 
>  >  > For additional commands, e-mail: 
> user-help@ant.apache.org  >  > > 
> _________________________________________________________________
>  >  > Don't just search. Find. Check out the new MSN Search!
>  >  > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>  >  >
>  >  >
>  >  >
>  > 
> ---------------------------------------------------------------------
>  >  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org 
>  >  > For additional commands, e-mail: 
> user-help@ant.apache.org  >  >  >  >  >  > 
> ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org 
> For  > additional commands, e-mail: user-help@ant.apache.org  
> >  > _________________________________________________________________
>  > FREE pop-up blocking with the new MSN Toolbar - get it now!
>  > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>  >
>  >
>  > 
> ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org 
> For  > additional commands, e-mail: user-help@ant.apache.org  >  >  >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today 
> - it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message