ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PHILIPPE Johan" <Johan.PHILI...@post.be>
Subject RE: SCP Auth Faild
Date Wed, 26 Jul 2006 08:45:13 GMT
This could be it, the version is

OpenSSH_4.1p1, OpenSSL 0.9.7d 17 Mar 2004

Thanks for the hint, I'll see if I can confirm it and in the mean time get rid of the issue.


MVrGr,

Johan

> -----Original Message-----
> From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> Sent: dinsdag 25 juli 2006 19:33
> To: Ant Users List
> Subject: RE: SCP Auth Faild
> 
> It should work. It works for me. I'm not sure why you are having problems
> with it. What distribution and version of ssh server are you using? There
> have been issues with early versions of sshd that do not support the
> diffie-hellman key exchange method implemented in jsch.
> 
> -Rob A
> 
> > -----Original Message-----
> > From: PHILIPPE Johan [mailto:Johan.PHILIPPE@post.be]
> > Sent: Tuesday, July 25, 2006 12:40 AM
> > To: Ant Users List
> > Subject: RE: SCP Auth Faild
> >
> > Been there, Done That.
> > And the user name and password are absolute correct and
> > absolutely straight forward.
> > The error is indicating it cannot authenticate, which under
> > the circumstances it should be able to do.
> > With regards to using an ssh key, well keyboard-interactive
> > is the standard I find myself in at the company I'm working
> > for at the moment.  It's what I'll have to work with for the
> > near to mid-term at least.
> > Anyway, there's nothing in TFM saying that it shouldn't work
> > with keyboard-interactive.
> >
> > MVrGr,
> >
> > Johan
> >
> >
> > > -----Original Message-----
> > > From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> > > Sent: maandag 24 juli 2006 19:26
> > > To: Ant Users List
> > > Subject: RE: SCP Auth Faild
> > >
> > > The error you are getting indicates that the username and
> > password are
> > > incorrect. Some people have had problems if there are special
> > > characters in the password and the password is in the
> > build.xml file.
> > > If this is the case, try putting the password in a properties file,
> > > without quotes. The best option, in my opinion, is to use
> > an ssh key for authentication.
> > >
> > > -Rob A
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: PHILIPPE Johan [mailto:Johan.PHILIPPE@post.be]
> > > > Sent: Monday, July 24, 2006 4:52 AM
> > > > To: user@ant.apache.org
> > > > Subject: RE: SCP Auth Faild
> > > >
> > > > I'm currently facing a similar problem and are wondering if it is
> > > > related to:
> > > >
> > > > http://marc.theaimsgroup.com/?l=ant-dev&m=111959408515300&w=2
> > > >
> > > > The server I am trying to connect to does indeed use
> > > > keyboard-interactive login (as is apparent when I do a
> > manual login
> > > > with SSH/PuTTY).
> > > >
> > > > Both sshexec and scp fail in a similar fashion.  The
> > following task:
> > > >
> > > >     <target name="to-dv" description="Compile and upload to
> > > > DeVelopment server.">
> > > > 	<sshexec host="s30835"
> > > > 		username="${user}"
> > > > 		password="${password}"
> > > > 		knownhosts="${basedir}/known_hosts"
> > > > 		failonerror="false"
> > > > 		command="touch tst.txt"/>
> > > >         <scp file="${basedir}/libs/app-1.0.0.ear"
> > > >
> > > > todir="${user}:${password}@s30835:/usr/local/${user}/deploy"
> > > >              verbose="true"
> > > >              knownhosts="${basedir}/known_hosts"
> > > >              />
> > > >     </target>
> > > >
> > > > Gives this output:
> > > >
> > > > to-dv:
> > > >   [sshexec] Connecting to s30835:22
> > > >   [sshexec] Caught exception: Auth fail
> > > >       [scp] Connecting to s30835:22
> > > >
> > > > BUILD FAILED
> > > > C:\Projects\BOP\DEV\build.xml:76:
> > > > com.jcraft.jsch.JSchException: Auth fail
> > > > 	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(Def
> > > > aultExecut
> > > > or.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 fail
> > > > 	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
> > > > (SSHBase.j
> > > > ava: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 fail
> > > > 	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
> > > > (SSHBase.j
> > > > ava: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(Def
> > > > aultExecut
> > > > or.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: 9 seconds
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Arminio Andrei [mailto:arminio.andrei@yahoo.com]
> > > > > Sent: woensdag 19 juli 2006 23:16
> > > > > To: Ant Users List
> > > > > Subject: RE: SCP Auth Faild
> > > > >
> > > > > I will post u a log tomorrow, now I'm home and I don't have
> > > > access to
> > > > may
> > > > > build server.
> > > > >
> > > > >   Thx again Rob,
> > > > >   Arminio A.
> > > > >
> > > > > "Anderson, Rob (Global Trade)" <Rob.Anderson@nike.com> wrote:
> > > > >   It doesn't say "Connecting to host:22" before the
> > > > failure? That is
> > > > > strange. Anyway, if it works now, that is all that matters.
> > > > >
> > > > > -Rob A
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Arminio Andrei [mailto:arminio.andrei@yahoo.com]
> > > > > > Sent: Wednesday, July 19, 2006 11:33 AM
> > > > > > To: Ant Users List
> > > > > > Subject: RE: SCP Auth Faild
> > > > > >
> > > > > > No, there isn't other messages before failure! I'm
> > sure the best
> > > > > > practice is tu use ssh keys that works for me now.
> > > > > >
> > > > > > "Anderson, Rob (Global Trade)" wrote:
> > > > > > I would like to see if there are any other messages
> > from the scp
> > > > > > task before the failure. This may help identify the
> > > > problem or show
> > > > > > how far the task gets before failure.
> > > > > >
> > > > > > -Rob A
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Arminio Andrei [mailto:arminio.andrei@yahoo.com]
> > > > > > > Sent: Tuesday, July 18, 2006 8:04 AM
> > > > > > > To: Ant Users List
> > > > > > > Subject: RE: SCP Auth Faild
> > > > > > >
> > > > > > > Why?
> > > > > > > I'm using a bash script with scp output droped and
> > > > print progress
> > > > > > > messages
> > > > > > >
> > > > > > > "Anderson, Rob (Global Trade)" wrote:
> > > > > > > Can you send the entire output of the build please.
> > > > > > >
> > > > > > > -Rob A
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Arminio Andrei [mailto:arminio.andrei@yahoo.com]
> > > > > > > > Sent: Monday, July 17, 2006 12:39 PM
> > > > > > > > To: Ant Users List
> > > > > > > > Subject: RE: SCP Auth Faild
> > > > > > > >
> > > > > > > > Thanks Bob!
> > > > > > > >
> > > > > > > > "Anderson, Rob (Global Trade)" wrote:
> > > > > > > > The error indicates an authentication failure. This
can
> > > > > > > happen for
> > > > > > > > a few common reasons.
> > > > > > > >
> > > > > > > > 1. If your password has special characters and you
are
> > > > > > putting the
> > > > > > > > actual password in your build.xml you may get this
error.
> > > > > > > To fix the
> > > > > > > > problem, put the password in a properties file and
use a
> > > > > > > property in
> > > > > > > > your build.xml.
> > > > > > > >
> > > > > > > > My password don't have special characters and dosen't
> > > > > > > work evean if
> > > > > > > > I put it in a properties file.
> > > > > > > >
> > > > > > > > 2. If your password is not correct, you will get
> > this error.
> > > > > > > >
> > > > > > > > And I'm sure it is correct.
> > > > > > > >
> > > > > > > > I recommend using ssh keys to authenticate
> > because you will
> > > > > > > not have
> > > > > > > > to put your password in plain text into a build.xml
or
> > > > properties
> > > > > > > > file.
> > > > > > > >
> > > > > > > > I've make a bash script that can do this job using
> > > > ssh keys to
> > > > > > > > authenticate and I guess will be a peace of cake
> > to use scp
> > > > > > > ant task,
> > > > > > > > but this tomorrow
> > > > > > > >
> > > > > > > > -Rob A
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: Arminio Andrei [mailto:arminio.andrei@yahoo.com]
> > > > > > > > > Sent: Friday, July 14, 2006 11:37 PM
> > > > > > > > > To: user@ant.apache.org
> > > > > > > > > Subject: SCP Auth Faild
> > > > > > > > >
> > > > > > > > > Hi all,
> > > > > > > > >
> > > > > > > > > I try to copy a bunch of files from my local
machine
> > > > > > > > (Fedora Core 5)
> > > > > > > > > to the jboss server that running on a SuSe
> > Enterprise 9. I
> > > > > > > > write this
> > > > > > > > > ant task:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > I'm geting this error:
> > > > > > > > > BUILD FAILED
> > > > > > > > >
> > > > /usr/local/cruisecontrol/projects/CNAS-SIUI/build/tst.xml:60:
> > > > > > > > > com.jcraft.jsch.JSchException: Auth fail 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)
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > >
> > ......................................................................
> > > > > > > > >
> > > > > > > > > If I use scp everything works fine but from ant
......
> > > > > > > > >
> > > > > > > > > I try to use diffrent kind of jsch.jar libraries
but I
> > > > > > > get the same
> > > > > > > > > error.
> > > > > > > > >
> > > > > > > > > Does anyoane of u know what happends?
> > > > > > > > >
> > > > > > > > > Thx for help,
> > > > > > > > > Arminio
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --------------------------------- Do you Yahoo!?
> > > > > > > > > Next-gen email? Have it all with the all-new
Yahoo!
> > > > Mail Beta.
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > >
> > --------------------------------------------------------------------
> > > > -
> > > > > > > > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org For
> > > > > > > additional
> > > > > > > > commands, e-mail: user-help@ant.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --------------------------------- Do you Yahoo!?
> > > > > > > > Next-gen email? Have it all with the all-new
> > Yahoo! Mail Beta.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > >
> > --------------------------------------------------------------------
> > > > -
> > > > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For
> > > > > > additional
> > > > > > > commands, e-mail: user-help@ant.apache.org
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --------------------------------- Do you Yahoo!?
> > > > > > > Get on board. You're invited to try the new Yahoo!
> > Mail Beta.
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > --------------------------------------------------------------------
> > > > -
> > > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > > > > > additional commands, e-mail: user-help@ant.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --------------------------------- How low will we go?
> > Check out
> > > > > > Yahoo! Messenger's low PC-to-Phone call rates.
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > --------------------------------------------------------------------
> > > > -
> > > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > > > additional
> > > > > commands, e-mail: user-help@ant.apache.org
> > > > >
> > > > >
> > > > >
> > > > >  __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > > > http://mail.yahoo.com
> > > >
> > > >
> > > > 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.
> > > >
> > > >
> > --------------------------------------------------------------------
> > > > - 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
> >
> >
> >
> > 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.
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org



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.
Mime
View raw message