You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Arminio Andrei <ar...@yahoo.com> on 2006/07/15 08:37:26 UTC
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:
<scp todir="user:password@jbossmachine:/home/jboss" trust="yes">
<fileset dir="/path/to/my/local/files"/>
</scp>
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.
RE: SCP Auth Faild
Posted by Arminio Andrei <ar...@yahoo.com>.
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)" <Ro...@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
RE: SCP Auth Faild
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
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)" <Ro...@nike.com> 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
RE: SCP Auth Faild
Posted by Arminio Andrei <ar...@yahoo.com>.
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)" <Ro...@nike.com> 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! Messengers low PC-to-Phone call rates.
RE: SCP Auth Faild
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
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)" <Ro...@nike.com> 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
RE: SCP Auth Faild
Posted by Arminio Andrei <ar...@yahoo.com>.
Why?
I'm using a bash script with scp output droped and print progress messages
"Anderson, Rob (Global Trade)" <Ro...@nike.com> 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.
Re: RE: SCP Auth Faild
Posted by Arminio Andrei <ar...@yahoo.com>.
Markus I think u should use ssh keys is more secure. Look at this script that do the hard work for u :)
/bin/sh
# This script generates an ssl key for the local machine,
# and copies this key to the remote server.
# This allows a specific user to be granted a passwordless login
# from a specific client machine.
# 2003 Arthur Ketcham
# RSA keys may be subject to export restrictions
if [ ! -n "$1" ]
then
echo "Usage: `basename $0` user@server.com"
exit
fi
if [ ! -e ~/.ssh/id_rsa.pub ]
then
echo "Generating RSA key"
ssh-keygen -t rsa
fi
echo "Copying local SSH pub_key to $1"
echo "Please enter password for remote account:"
# Use scp to opy key to remote temp file
scp ~/.ssh/id_rsa.pub $1:~/.ssh/authorized_keys.tmp
# Append key to ~/.ssh/authorized_keys
echo "Please enter password again to append key to remote 'authorized_keys' file"
ssh $1 "cat ~/.ssh/authorized_keys.tmp >> ~/.ssh/authorized_keys; rm ~/.ssh/authorized_keys.tmp; exit"
Regards,
Arminio
"Markus M. May" <mm...@gmx.net> wrote: Hello,
I have had a similar error message between two SuSE boxes. I reconfigured the sshd:
PasswordAuthentication yes
and
#UsePAM yes
Now it works without any problems. I believe, that there are now some security issues, and that it would be better to use public/private keys, but in our environment, this should not be a problem.
R,
Markus
-------- Original-Nachricht --------
Datum: Mon, 17 Jul 2006 17:50:19 -0700
Von: Rich
An: \'Ant Users List\'
Betreff: RE: SCP Auth Faild
> Also, if you're using ssh keys, make sure you use the proper permissions
> on those directories containing the keys. Giving too much permission
> (e.g., 0777) can cause automated login to fail.
>
> ->rich
>
> > -----Original Message-----
> > From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> > Sent: Monday, July 17, 2006 4:31 PM
> > To: Ant Users List
> > Subject: RE: SCP Auth Faild
> >
> >
> > 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail Beta.
Re: RE: SCP Auth Faild
Posted by "Markus M. May" <mm...@gmx.net>.
Hello,
I have had a similar error message between two SuSE boxes. I reconfigured the sshd:
PasswordAuthentication yes
and
#UsePAM yes
Now it works without any problems. I believe, that there are now some security issues, and that it would be better to use public/private keys, but in our environment, this should not be a problem.
R,
Markus
-------- Original-Nachricht --------
Datum: Mon, 17 Jul 2006 17:50:19 -0700
Von: Rich <ri...@tinypictures.us>
An: \'Ant Users List\' <us...@ant.apache.org>
Betreff: RE: SCP Auth Faild
> Also, if you're using ssh keys, make sure you use the proper permissions
> on those directories containing the keys. Giving too much permission
> (e.g., 0777) can cause automated login to fail.
>
> ->rich
>
> > -----Original Message-----
> > From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> > Sent: Monday, July 17, 2006 4:31 PM
> > To: Ant Users List
> > Subject: RE: SCP Auth Faild
> >
> >
> > 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)" <Ro...@nike.com> 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
RE: SCP Auth Faild
Posted by Arminio Andrei <ar...@yahoo.com>.
Don't worry, only root has rw access on private key and others can read public key. With this permissions is working!
Rich <ri...@tinypictures.us> wrote: Also, if you're using ssh keys, make sure you use the proper permissions
on those directories containing the keys. Giving too much permission
(e.g., 0777) can cause automated login to fail.
->rich
> -----Original Message-----
> From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> Sent: Monday, July 17, 2006 4:31 PM
> To: Ant Users List
> Subject: RE: SCP Auth Faild
>
>
> 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
>
>
---------------------------------------------------------------------
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.
RE: SCP Auth Faild
Posted by Rich <ri...@tinypictures.us>.
Also, if you're using ssh keys, make sure you use the proper permissions
on those directories containing the keys. Giving too much permission
(e.g., 0777) can cause automated login to fail.
->rich
> -----Original Message-----
> From: Anderson, Rob (Global Trade) [mailto:Rob.Anderson@nike.com]
> Sent: Monday, July 17, 2006 4:31 PM
> To: Ant Users List
> Subject: RE: SCP Auth Faild
>
>
> 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)" <Ro...@nike.com> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: SCP Auth Faild
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
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)" <Ro...@nike.com> 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
RE: SCP Auth Faild
Posted by Arminio Andrei <ar...@yahoo.com>.
Thanks Bob!
"Anderson, Rob (Global Trade)" <Ro...@nike.com> 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.
RE: SCP Auth Faild
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
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.
2. If your password is not correct, you will get this error.
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.
-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:
>
> <scp todir="user:password@jbossmachine:/home/jboss" trust="yes">
> <fileset dir="/path/to/my/local/files"/> </scp>
>
> 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