Need help with GDB test run: Asks for password although ssh setup not to require password.

Anmol P. Paralkar b07584@freescale.com
Tue Oct 28 23:08:00 GMT 2008


On Sun, 26 Oct 2008, Andreas Schwab wrote:

> "Anmol P. Paralkar" <b07584@freescale.com> 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 gdbserver 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.
>
> -- 
> Andreas Schwab, SuSE Labs, schwab@suse.de
> SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
> PGP key fingerprint = 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 (between the -l and $username)
  as I made the change, and got the "Connection refused"'s. I do not see the problem after having
  taken care of that.

  Thank you very much for your response.

Best Regards,
Anmol.


More information about the Gdb mailing list