More Slack7 heartbreak.

Markus Friedl markus.friedl at
Sun Apr 16 03:29:53 EST 2000

On Fri, Apr 14, 2000 at 12:07:02PM -0500, Richard June wrote:
> All line number are approximate, but most likely w/in 10 lines of the
> OK, I've tracked down lots of goofy stuff w/ slack7 and OpenSSH
> I've got a couple of questions.
> What is /dev/tty and why does ssh try to open it to read the password
> instead of stdin?

openssh reads passwds from the current terminal (/dev/tty),
reading from stdin is a bad idea, e.g. stdin might be redirected.

some broken distributions ship with /dev/tty unreable.

> (this cause ssh to die w/ "You have no controlling tty.
> Cannot read passphrase.\n", line 69 of readpass.c, I've made it work by
> calling
> password = read_passphrase(prompt, 1); instead of 
> password = read_passphrase(prompt, 0); 
> in sshconnect.c line 940


More information about the openssh-unix-dev mailing list