Hi Scott, thanks for reply!
I`ve tried without success... the same error... Beste Regards Leandro Franchi On Fri, Jan 11, 2013 at 10:10 AM, Scott Cranton <scran...@redhat.com> wrote: > Leandro, > > from memory, I'm thinking having the leading @ -- ssh://@host:port -- is > causing you problems… > > try > > ssh:// > user01:My_pwd@10.54.139.52:6059?userFixedDelay=true&delay=5000&pollcommand=ls > > and see if that works better… > > Hope that helps, > Scott > > On Jan 11, 2013, at 6:41 AM, Leandro Franchi <leandro.fran...@gmail.com> > wrote: > > > Hi, > > > > I'm using ssh component to connect an server but some thing is wrong. I > can > > connect server using putty or ssh directly but I got authentication error > > when using camel component. > > > > Camel 2.10.3, Jdk 7 on windows 7. > > > > My route: > > > > <route id="ssh-route" shutdownRoute="Defer" > > errorHandlerRef="myErrorHandler" autoStartup="true"> > > > > <from uri="ssh://@ > > > 10.54.139.52:6059?username=usr01&password=My_pwd&useFixedDelay=true&delay=5000&pollCommand=ls > > "/> > > > > <to uri="log:ExampleRouter?showAll=true"/> > > > > </route> > > > > The password is correct! > > > > The error is: > > > > 11/01/2013 09:29:17.524 [main] INFO > > org.apache.camel.spring.SpringCamelContext:1434 - Apache Camel 2.10.2 > > (CamelContext: mirCamel) started in 1.109 seconds > > > > 11/01/2013 09:29:18.538 [NioProcessor-2] INFO > > org.apache.sshd.client.session.ClientSessionImpl:73 - Session created... > > > > 11/01/2013 09:29:18.554 [NioProcessor-2] INFO > > org.apache.sshd.client.session.ClientSessionImpl:386 - Server version > > string: SSH-2.0-OpenSSH_4.3 > > > > 11/01/2013 09:29:18.554 [NioProcessor-2] INFO > > org.apache.sshd.client.session.ClientSessionImpl:234 - Received > > SSH_MSG_KEXINIT > > > > 11/01/2013 09:29:18.555 [NioProcessor-2] INFO > > org.apache.sshd.client.kex.DHG1:78 - Send SSH_MSG_KEXDH_INIT > > > > 11/01/2013 09:29:18.648 [NioProcessor-2] INFO > > org.apache.sshd.client.kex.DHG1:93 - Received SSH_MSG_KEXDH_REPLY > > > > 11/01/2013 09:29:18.648 [NioProcessor-2] INFO > > org.apache.sshd.client.session.ClientSessionImpl:707 - Send > SSH_MSG_NEWKEYS > > > > 11/01/2013 09:29:18.648 [NioProcessor-2] INFO > > org.apache.sshd.client.session.ClientSessionImpl:254 - Received > > SSH_MSG_NEWKEYS > > > > 11/01/2013 09:29:18.664 [NioProcessor-2] INFO > > org.apache.sshd.client.session.ClientSessionImpl:421 - Send > > SSH_MSG_SERVICE_REQUEST for ssh-userauth > > > > 11/01/2013 09:29:18.835 [Camel (mirCamel) thread #1 - ssh://@ > > 10.59.159.12:4098] INFO > org.apache.sshd.client.auth.UserAuthPassword:43 - > > Send SSH_MSG_USERAUTH_REQUEST for password > > > > 11/01/2013 09:29:18.867 [NioProcessor-2] INFO > > org.apache.sshd.client.auth.UserAuthPassword:59 - Received > > SSH_MSG_USERAUTH_FAILURE > > > > 11/01/2013 09:29:18.867 [Camel (mirCamel) thread #1 - ssh://@ > > 10.59.159.12:4098] WARN org.apache.camel.component.ssh.SshConsumer:136 > - > > Consumer Consumer[ssh://@ > > > 10.59.159.12:4098?delay=5000&password=******&pollCommand=ls&useFixedDelay=true&username=usr01 > ] > > failed polling endpoint: Endpoint[ssh://@ > > > 10.59.159.12:4098?delay=5000&password=******&pollCommand=ls&useFixedDelay=true&username=usr01 > ]. > > Will try again at next poll. Caused by: > > [org.apache.camel.RuntimeCamelException - Failed to authenticate username > > usr01] > > > > * org.apache.camel.RuntimeCamelException: Failed to authenticate username > > usr01 > > * > > at > > > org.apache.camel.component.ssh.SshEndpoint.sendExecCommand(SshEndpoint.java:123) > > > > at org.apache.camel.component.ssh.SshConsumer.poll(SshConsumer.java:34) > > > > at > > > org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142) > > > > at > > > org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92) > > > > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > > > > at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) > > > > at java.util.concurrent.FutureTask.runAndReset(Unknown Source) > > > > at > > > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown > > Source) > > > > at > > > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown > > Source) > > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > > > > at java.lang.Thread.run(Unknown Source) > > > > > > > > Thanks > > > > -- > > Leandro Franchi > > http://www.frango10.com > > -- *Leandro Franchi* http://www.frango10.com