ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sheptunov, Bogdan" <Bogdan.Sheptu...@experian.com>
Subject using SCP task from Windows 2000 to a Red Hat Linux 7.3 box
Date Tue, 09 Dec 2003 21:28:13 GMT
Hi everybody,

i'm trying to set up an SCP task in Ant 1.6. Here's my script:

     <scp file="${jarName}"
         todir="mylogin@XX.YY.ZZ.DD:/directory"
         password="mypassword"
         trust="yes"/>
   </target>

The pair login/password is correct and works if logging in manually through
PuTTy.

When I am invoke the script, I'm getting

com.jcraft.jsch.JSchException: Auth fail

com.jcraft.jsch.JSchException: Auth fail
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:166)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302)
at org.apache.tools.ant.Task.perform(Task.java:401)
at org.apache.tools.ant.Target.execute(Target.java:338)
at org.apache.tools.ant.Target.performTasks(Target.java:365)
at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
at com.intellij.rt.ant.execution.AntMain.runBuild(AntMain.java:493)
at com.intellij.rt.ant.execution.AntMain.start(AntMain.java:166)
at com.intellij.rt.ant.execution.AntMain.main(AntMain.java:191)

 Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:352)
at
org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBase.java:
204)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:227)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:155)
... 9 more 

--- Nested Exception ---
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:352)
at
org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBase.java:
204)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:227)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302)
at org.apache.tools.ant.Task.perform(Task.java:401)
at org.apache.tools.ant.Target.execute(Target.java:338)
at org.apache.tools.ant.Target.performTasks(Target.java:365)
at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
at com.intellij.rt.ant.execution.AntMain.runBuild(AntMain.java:493)
at com.intellij.rt.ant.execution.AntMain.start(AntMain.java:166)
at com.intellij.rt.ant.execution.AntMain.main(AntMain.java:191)

In /var/logs/messages on my target Linux box, I see

Dec  9 15:17:48 frontend-d sshd(pam_unix)[6717]: authentication failure;
logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=mypc  user=mylogin
Dec  9 15:17:51 frontend-d sshd[6717]: Failed password for mylogin from
AA.BB.CC.DD port 1587 ssh2

AA.BB.CC.DD is a correct IP of "mypc", which is the name of my pc, so DNS
works right.

Question: why isn't it letting me through? It is not stating the reason, or
is it? Then where do I look for an additional error message? Do I need to
configure PAM or something? 

How you guys got it to work?

Thanks in advance
Bogdan




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


Mime
View raw message