Hi Carton,

Does it work if you try to do the scp from the command line?  From a very
cursory look at the error it seems like your getting some kind
authentication error.  Without knowing a lot about your environment I'd
first do a sanity check on the ssh configuration.  I'm wondering if the ssh
certificates on your local and remote box are setup correctly.

Hope this helps,

Brian

Brian McCallion
President
WebSphere Automation Solutions
Bronze Drum Consulting, Inc.
230 Park Avenue
New York, NY  10169
T (646) 283-0534
F (646) 201-9596
http://www.bronzedrum.com
[EMAIL PROTECTED]
-----Original Message-----
From: Brown, Carlton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 05, 2006 5:24 PM
To: Ant Users List
Subject: scp "auth cancel" error

Can anyone shed light on this scp failure?  It's possible I made a
mistake although I checked my work.

 

The output:

ship:

      [scp] Connecting to some.host.com:22

BUILD FAILED

D:\dev\R2.0\src\test\build.xml:9: com.jcraft.jsch.JSchException: Auth
cancel

 

 

The target code:

            <target name="ship">

                        <scp file="foo.xml"

 
todir="[EMAIL PROTECTED]:/var/data"

                                    passphrase=""

                                    trust="true"

                                    verbose="true"

                                    keyfile="my.pub"/>

            </target>

 

 

Software versions:

jsch-0.1.26.jar

ant 1.6.5

jdk:  j2sdk1.4.2_10

 

I double checked that all referenced files exist and that the remote
host is reachable via ssh.

 

Thanks in advance,

Carlton


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers. 163



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to