Bug 3029

Summary: keyscan does not list rsa keys if the ssh-rsa is not allowed on server
Product: Portable OpenSSH Reporter: Jakub Jelen <jjelen>
Component: ssh-keyscanAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm
Priority: P5    
Version: 8.0p1   
Hardware: Other   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2988    
Attachments:
Description Flags
proposed patch none

Description Jakub Jelen 2019-07-02 20:47:26 AEST
Created attachment 3294 [details]
proposed patch

the keyscan is forcing ssh-rsa signature algorithm when scanning for rsa keys and if ssh-rsa (SHA1 variant) is not allowed on server, no RSA keys is returned.

The attached patch extends the signature algorithms to offer also the SHA2 variants (and certificate SHA2 variants) so the keyscan can work as expected.
Comment 1 Damien Miller 2019-07-12 14:09:02 AEST
Applied - thanks
Comment 2 Damien Miller 2021-04-23 14:57:02 AEST
closing resolved bugs as of 8.6p1 release