[Bug 471] New: Misleading error message if /dev/tty permissions wrong

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Jan 19 17:49:17 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=471

           Summary: Misleading error message if /dev/tty permissions wrong
           Product: Portable OpenSSH
           Version: 3.4p1
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: ssh-bugzilla at veggiechinese.net


If a user doesn't have read / write permissions to /dev/tty with OpenSSH 3.4p1
on Linux, the error message given is "Host key verification failed"; this error
message is misleading and confusing IMHO.

dali% ssh -V
OpenSSH_3.4p1 Debian 1:3.4p1-1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f

dali% ssh jazz.hq.newdream.net
Host key verification failed.
dali% strace ssh jazz.hq.newdream.net
[...]
read(4, "jareth,jareth.dreamhost.com,66.3"..., 4096) = 251
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x124000, 4096)                  = 0
open("/dev/tty", O_RDWR|O_LARGEFILE)    = -1 EACCES (Permission denied)
open("/dev/tty", O_RDWR|O_LARGEFILE)    = -1 EACCES (Permission denied)
write(2, "Host key verification failed.\r\n", 31Host key verification failed.
) = 31
shutdown(3, 2 /* send and receive */)   = 0
close(3)                                = 0
_exit(255)                              = ?

Changing permissions on /dev/tty seems to fix this problem.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-unix-dev mailing list