Bug 900

Summary: challenge-response prompt is ugly
Product: Portable OpenSSH Reporter: Pavel Kankovsky <peak>
Component: sshAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm
Priority: P2    
Version: 3.8.1p1   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
patch fixing the problem none

Description Pavel Kankovsky 2004-07-21 07:45:20 AEST
The client displays challenge-response authentication (SSH 1) prompt in a rather
ugly way (and IMHO somewhat confusing from the user's) way, e.g.

$ ssh -1 host
Password: 
Response: <cursor>

or

$ ssh -1 host
Very long prompt
including a line break
<cursor>

or even (the worst case)

$ ssh -1 host
Very long prompt
including line breaks
but lacking the terminal newline<cursor>

I think it should look like

$ ssh -1 host
Password: <cursor>

or

$ ssh -1 host
Very long prompt
including a line break
(maybe lacking the terminal newline)
Response: <cursor>
Comment 1 Pavel Kankovsky 2004-07-21 07:49:53 AEST
Created attachment 691 [details]
patch fixing the problem

A challenge ending with ": " is used as a prompt without any modification.
"Response: " is appended to a challenge ending with a newline.
"\nResponse: " is appended to any other challenge.
Comment 2 Damien Miller 2017-12-20 17:33:36 AEDT
Fixed by removal of SSHv1 code :P
Comment 3 Damien Miller 2021-04-23 15:00:24 AEST
closing resolved bugs as of 8.6p1 release