OpenSSH is not asking for passwords.

James Supancic arrummzen at gmail.com
Sun Apr 24 05:13:48 EST 2005


After trying to apply your patch for 5 minites, I just replaced all
your fancy code with a call to printf and a call to gets (not fgets),
and now it works.

It now works without all the tty stuff being setup. 

Thank you for your time,
Arrummzen

On 4/23/05, Darren Tucker <dtucker at zip.com.au> wrote:
> James Supancic wrote:
> > My /dev/tty is now exactly the same as yours.
> > This is the -vvv output from the failed connection attempt (it didn't
> > ask for a password)
> [...]
> 
> Hmm, there's nothing obvious in there.  Could you please try it again
> (ssh -vvv) with the attached patch?
> 
> --
> Darren Tucker (dtucker at zip.com.au)
> GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
>      Good judgement comes with experience. Unfortunately, the experience
> usually comes from bad judgement.
> 
> 
> Index: readpass.c
> ===================================================================
> RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/readpass.c,v
> retrieving revision 1.29
> diff -u -p -r1.29 readpass.c
> --- readpass.c  5 Nov 2004 09:38:03 -0000       1.29
> +++ readpass.c  23 Apr 2005 09:15:58 -0000
> @@ -107,14 +107,18 @@ read_passphrase(const char *prompt, int
>                 use_askpass = 1;
>         else if (flags & RP_ALLOW_STDIN) {
>                 if (!isatty(STDIN_FILENO))
> +                       debug("read_passphrase: stdin is not a tty");
>                         use_askpass = 1;
>         } else {
>                 rppflags |= RPP_REQUIRE_TTY;
>                 ttyfd = open(_PATH_TTY, O_RDWR);
>                 if (ttyfd >= 0)
>                         close(ttyfd);
> -               else
> +               else {
> +                       debug("read_passphrase: can't open %s: %s", _PATH_TTY,
> +                           strerror(errno));
>                         use_askpass = 1;
> +               }
>         }
> 
>         if ((flags & RP_USE_ASKPASS) && getenv("DISPLAY") == NULL)
> 
> 
>




More information about the openssh-unix-dev mailing list