Strange read_passphrase behaviour ?
Jarno Huuskonen
Jarno.Huuskonen at uku.fi
Mon Jan 28 04:23:31 EST 2002
On Sun, Jan 27, Markus Friedl wrote:
> why do you get ENOTTY?
I think it was the util-linux bug where login didn't set controlling
tty. It was on some test install box that had the buggy util-linux and
it didn't have eth0 configured. If I logged in as root and manually
brought eth0 up then ssh some.host.com would fail to read the password
and just send empty password three times to some.host.com
(open(/dev/tty) returned -1). (Funny thing was that after logout/login
(when eth0 was up) ssh was able to read the password from tty).
The tty problem is/was something with util-linux, but I think that ssh
should handle ENOTTY more "gracefully".
> should ssh auto-set Batchmode=yes for ENOTTY?
This might work. I'll try to test it (I still have the buggy util-linux
around). BTW I failed to mention that I tested this with openssh-3.0.2p1.
-Jarno
--
Jarno Huuskonen <Jarno.Huuskonen at uku.fi>
More information about the openssh-unix-dev
mailing list