Bug 2044 - error message is printed for SSHv1 when ssh is forced to allocate a pseudo-tty even when it does not have a one
Summary: error message is printed for SSHv1 when ssh is forced to allocate a pseudo-tt...
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 6.1p1
Hardware: All All
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-26 21:35 AEST by Ivo Raisr
Modified: 2021-03-04 09:54 AEDT (History)
1 user (show)

See Also:


Attachments
patch with a fix (1.59 KB, patch)
2012-09-26 21:35 AEST, Ivo Raisr
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivo Raisr 2012-09-26 21:35:14 AEST
Created attachment 2190 [details]
patch with a fix

When running
ssh -1 -tt user@host tty </dev/null

then ssh has to use SSHv1 and is forced to allocate a tty
even when stdin is not a terminal.

In this case, ssh correctly logs into the remote host,
allocates a tty and successfully runs the command.
But it displays error message:

tcgetattr: ......

Note that when SSHv2 is used, no error message is printed.
This is because the following two bugs were fixed previously:
https://bugzilla.mindrot.org/show_bug.cgi?id=1686
https://bugzilla.mindrot.org/show_bug.cgi?id=1199

This bug report is for SSHv1 only.
See the attached patch for a suggested fix.
Comment 1 Damien Miller 2020-06-26 16:08:32 AEST
We fixed this by deleting SSHv1 :)
Comment 2 Damien Miller 2021-03-04 09:54:00 AEDT
close bugs that were resolved in OpenSSH 8.5 release cycle