From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4630 invoked by alias); 28 Oct 2008 23:08:03 -0000 Received: (qmail 4477 invoked by uid 22791); 28 Oct 2008 23:08:01 -0000 X-Spam-Check-By: sourceware.org Received: from az33egw02.freescale.net (HELO az33egw02.freescale.net) (192.88.158.103) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Oct 2008 23:07:06 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw02.freescale.net (8.12.11/az33egw02) with ESMTP id m9SN6kKw022250; Tue, 28 Oct 2008 16:06:57 -0700 (MST) Received: from ld0159-tx32 (ld0159-tx32.am.freescale.net [10.82.19.109]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id m9SN6jcf009928; Tue, 28 Oct 2008 18:06:46 -0500 (CDT) Date: Tue, 28 Oct 2008 23:08:00 -0000 From: "Anmol P. Paralkar" To: Andreas Schwab cc: gdb@sourceware.org Subject: Re: Need help with GDB test run: Asks for password although ssh setup not to require password. In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1376414995-1275650267-1225234509=:1412" Content-ID: Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00124.txt.bz2 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1376414995-1275650267-1225234509=:1412 Content-Type: TEXT/PLAIN; CHARSET=X-UNKNOWN; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: Content-length: 2027 On Sun, 26 Oct 2008, Andreas Schwab wrote: > "Anmol P. Paralkar" writes: > >> I am trying to setup GDB DejaGNU remote testing using gdbserver. I have= set things up so >> that I can ssh to my target machine without it asking for my password. > > Which method did you use for that? I had used: http://www.debian.org/devel/passwordlessssh but please read on, below. > >> Is the failure I am seeing in the DejaGNU run really due to the gdbserv= er not being >> up prior to the remote connect attempt on the hostside GDB in turn, due= to the password >> being asked on the ssh? What am I doing wrong here? Kindly help. > > Most likely some environment variables are lost, maybe SSH_AUTH_SOCK. > > Andreas. > > --=20 > Andreas Schwab, SuSE Labs, schwab@suse.de > SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany > PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." > I was using instructions from: http://www.stlinux.com/docs/manual/development/advanced_development12.php In particular, I needed to make this change: ---------------------------------------------------------------------------= ----- --- dejagnu-1.4.4-orig/lib/remote.exp 2003-10-11 07:42:46.000000000 +0100 +++ dejagnu-1.4.4/lib/remote.exp 2005-01-05 14:46:44.635002000 +0000 @@ -865,7 +865,8 @@ if ![board_info $dest exists username] { set rsh_useropts "" } else { - set rsh_useropts "-l $username" + set username [board_info $dest username] + set rsh_useropts "-l$username" } if [board_info $dest exists hostname] { ---------------------------------------------------------------------------= ----- I hand-patched (lesson learnt!), and ended up overlooking the space (betw= een the -l and $username) as I made the change, and got the "Connection refused"'s. I do not see th= e problem after having taken care of that. Thank you very much for your response. Best Regards, Anmol.= --1376414995-1275650267-1225234509=:1412--