Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CE88EEF8 for ; Fri, 11 Jan 2013 12:11:26 +0000 (UTC) Received: (qmail 94676 invoked by uid 500); 11 Jan 2013 12:11:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 94481 invoked by uid 500); 11 Jan 2013 12:11:25 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 94440 invoked by uid 99); 11 Jan 2013 12:11:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 12:11:24 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of scranton@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 12:11:17 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0BCAt9q018070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 11 Jan 2013 07:10:55 -0500 Received: from [10.10.54.103] (vpn-54-103.rdu2.redhat.com [10.10.54.103]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0BCAsCf015767 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 11 Jan 2013 07:10:55 -0500 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: SSH Authentication Faiiled From: Scott Cranton In-Reply-To: Date: Fri, 11 Jan 2013 07:10:59 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <6740E192-2CE6-4EA9-B8B1-89830FBC6480@redhat.com> References: To: users@camel.apache.org X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Virus-Checked: Checked by ClamAV on apache.org Leandro, from memory, I'm thinking having the leading @ -- ssh://@host:port -- is = causing you problems=85 try = ssh://user01:My_pwd@10.54.139.52:6059?userFixedDelay=3Dtrue&delay=3D5000&p= ollcommand=3Dls and see if that works better=85 Hope that helps, Scott On Jan 11, 2013, at 6:41 AM, Leandro Franchi = wrote: > Hi, >=20 > 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. >=20 > Camel 2.10.3, Jdk 7 on windows 7. >=20 > My route: >=20 > errorHandlerRef=3D"myErrorHandler" autoStartup=3D"true"> >=20 > = 10.54.139.52:6059?username=3Dusr01&password=3DMy_pwd&useFixedDelay= =3Dtrue&delay=3D5000&pollCommand=3Dls > "/> >=20 > >=20 > >=20 > The password is correct! >=20 > The error is: >=20 > 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 >=20 > 11/01/2013 09:29:18.538 [NioProcessor-2] INFO > org.apache.sshd.client.session.ClientSessionImpl:73 - Session = created... >=20 > 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 >=20 > 11/01/2013 09:29:18.554 [NioProcessor-2] INFO > org.apache.sshd.client.session.ClientSessionImpl:234 - Received > SSH_MSG_KEXINIT >=20 > 11/01/2013 09:29:18.555 [NioProcessor-2] INFO > org.apache.sshd.client.kex.DHG1:78 - Send SSH_MSG_KEXDH_INIT >=20 > 11/01/2013 09:29:18.648 [NioProcessor-2] INFO > org.apache.sshd.client.kex.DHG1:93 - Received SSH_MSG_KEXDH_REPLY >=20 > 11/01/2013 09:29:18.648 [NioProcessor-2] INFO > org.apache.sshd.client.session.ClientSessionImpl:707 - Send = SSH_MSG_NEWKEYS >=20 > 11/01/2013 09:29:18.648 [NioProcessor-2] INFO > org.apache.sshd.client.session.ClientSessionImpl:254 - Received > SSH_MSG_NEWKEYS >=20 > 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 >=20 > 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 >=20 > 11/01/2013 09:29:18.867 [NioProcessor-2] INFO > org.apache.sshd.client.auth.UserAuthPassword:59 - Received > SSH_MSG_USERAUTH_FAILURE >=20 > 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=3D5000&password=3D******&pollCommand=3Dls&useFixed= Delay=3Dtrue&username=3Dusr01] > failed polling endpoint: Endpoint[ssh://@ > = 10.59.159.12:4098?delay=3D5000&password=3D******&pollCommand=3Dls&useFixed= Delay=3Dtrue&username=3Dusr01]. > Will try again at next poll. Caused by: > [org.apache.camel.RuntimeCamelException - Failed to authenticate = username > usr01] >=20 > * org.apache.camel.RuntimeCamelException: Failed to authenticate = username > usr01 > * > at > = org.apache.camel.component.ssh.SshEndpoint.sendExecCommand(SshEndpoint.jav= a:123) >=20 > at = org.apache.camel.component.ssh.SshConsumer.poll(SshConsumer.java:34) >=20 > at > = org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.ja= va:142) >=20 > at > = org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java= :92) >=20 > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) >=20 > at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown = Source) >=20 > at java.util.concurrent.FutureTask.runAndReset(Unknown Source) >=20 > at > = java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces= s$301(Unknown > Source) >=20 > at > = java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(U= nknown > Source) >=20 > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) >=20 > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >=20 > at java.lang.Thread.run(Unknown Source) >=20 >=20 >=20 > Thanks >=20 > -- > Leandro Franchi > http://www.frango10.com