Bug 900 - challenge-response prompt is ugly
Summary: challenge-response prompt is ugly
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 3.8.1p1
Hardware: All Linux
: P2 enhancement
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 07:45 AEST by Pavel Kankovsky
Modified: 2021-04-23 15:00 AEST (History)
1 user (show)

See Also:


Attachments
patch fixing the problem (597 bytes, patch)
2004-07-21 07:49 AEST, Pavel Kankovsky
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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