> -----Original Message----- > From: Robert Clark [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 05, 2006 5:41 PM > To: [email protected] > Cc: Brown, Carlton > Subject: Re: scp "auth cancel" error > > On Wednesday April 5, 2006 17:23, "Brown, Carlton" > <[EMAIL PROTECTED]> wrote: > > Can anyone shed light on this scp failure? It's possible I made a > > mistake although I checked my work. > > > [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> > > I believe the key file should point to your private key, not your > public key.
Thanks to all who responded... I think something's wrong with my keyfile setup. I was able to connect using a username/password embedded in the todir attribute which proves at least that ssh connectivity works. Obviously hardcoding passwords is not a good idea but I still don't understand which keyfiles need to be referenced where... after I've generated a public and private key, what do I set up on the client and server for this to work? 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]
