[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using ssh for remote debugging
From: |
Dave Hoyt |
Subject: |
Re: using ssh for remote debugging |
Date: |
Mon, 26 Mar 2001 10:47:35 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux 2.2.18pre21 i686; en-US; m18) Gecko/20001103 |
Thanks for your speedy reply!
I added the line you suggested, and it seems to work -- partially. ddd
opens an ssh session to the target, w/ the right username, but no
password prompt is ever displayed. According to the log (below), the
remote host is iether receiving a bad password, or timing out. It
repeatedly says "permission denied... try again".
Adding the --login param doesn't seem to help iether.
TIA --Dave
Andreas Zeller wrote:
I saw mention in the manual, but no specific info, that it is
possible to make DDD use ssh for remote debugging, instead of rsh.
How do I go about accomplishing this? How do I specifiy a
username/pwd for the remote host, as well?
Try the line
Ddd*rshCommand: ssh
in your ~/.ddd/init file. Then, start DDD with the `--host' or
`--rhost' option.
Your remote account should be set up such that entering a password is
not required. Otherwise, you'll have a couple of security problems. (1)
Good luck,
Andreas
(1) In detail,
* you'll have to use `--rhost' and enter your password at the prompt,
* your password will be echoed back on your screen, and
* your password will be logged in `~/.ddd/log'.
You don't want either of this.
address@hidden:~/.ddd$ less log
GNU DDD 3.3 (i686-pc-linux-gnu)
Copyright (C) 1995-1999 Technische Universit<E4>t Braunschweig, Germany.
Copyright (C) 1999-2001 Universit<E4>t Passau, Germany.
Compiled with GCC 2.95.3 20010125 (prerelease), GNU libc 2.2
Requires X11R6, Xt11R6, Motif 1.2 (GNU/LessTif Version 1.2 Release 0.92.6)
Includes XPM 3.4.11, Athena Panner, License, News, DDD core
Built 2001-02-24 by J.H.M. Dassen (Ray) <address@hidden>.
$ ddd --rhost address@hidden
+ ssh -l [my_username] [remote host]
# Hello, world!
# Starting GDB...
# Enabling core dumps...
# Enabling core dumps...done.
# Running GDB (pid 25478, tty /dev/pts/3)...
# Current language: C/C++
# Searching "vsllib/ddd.vsl"...
# Trying "/home/dave/.ddd/vsllib/ddd.vsl"
# Trying "/usr/share/ddd-3.3/vsllib/ddd.vsl"
# Searching "vsllib/ddd.vsl"..."/usr/share/ddd-3.3/vsllib/ddd.vsl".
-> "stty -echo -onlcr\n"
<- "address@hidden's password: "
<- "\n"
-> "exec /bin/sh -c \'DISPLAY=${DISPLAY-\'\\\'\'127.0.0.1:0.0\'\\\'\'};
export DISPLAY; exec gdb -q -fullname\'\n"
<- "Permission denied, please try again.\r\n"
"address@hidden's password: "
<- "\n"
"Permission denied, please try again.\r\n"
"address@hidden's password: "
! Interrupt
# Running GDB (pid 25478, tty /dev/pts/3)...Hangup.
# Thanks for using DDD 3.3!