[qmtest] SSH Password Dialog Box?
Nathaniel Smith
njs at pobox.com
Wed Jan 7 23:49:40 UTC 2004
On Wed, Jan 07, 2004 at 04:52:06PM -0500, Scott Lowrey wrote:
> If I run the exact same script in QMTest as a python.ExecTest, a small
> dialog box pops up asking me the password for "user at host". Why? I'm
> raising an exception and catching it in my script! Is there something
> else going on here?
Are you sure you're raising an exception and catching it? I would
hazard a guess that something different about your environment is
causing ssh to not even both prompting for a password directly.
> - oh wait. Let me guess: there's no pseudo-terminal associated with the
> process, so OpenSSH is talking to KDE or something like that? I know some
> apps write directly to /dev/tty if they can - is that somehow
> circumventing Pexpect and causing the underlying ssh process to try to
> talk to the window manager?
ssh(1):
If ssh needs a passphrase, it will read the passphrase from the
current terminal if it was run from a terminal. If ssh does not
have a terminal associated with it but DISPLAY and SSH_ASKPASS are
set, it will execute the program specified by SSH_ASKPASS and open
an X11 window to read the passphrase.
I would hazard a guess that yeah, somehow ssh is not hooked up to a
terminal, and that's triggering the above check. I have no idea _why_
ssh wouldn't be hooked up to a terminal -- shouldn't pexpect be taking
care of that? -- but that's probably what's going on. I certainly
don't know what QMTest would be doing to break pexpect.
-- Nathaniel
--
Details are all that matters; God dwells there, and you never get to
see Him if you don't struggle to get them right. -- Stephen Jay Gould
More information about the qmtest
mailing list