Bug 3546

Summary: Use SHA2 in ssh-keygen key verification
Product: Portable OpenSSH Reporter: Dmitry Belyavskiy <dbelyavs>
Component: ssh-keygenAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm
Priority: P5    
Version: 8.7p1   
Hardware: Other   
OS: Linux   
Bug Depends on:    
Bug Blocks: 3533    
Attachments:
Description Flags
Proposed fix none

Description Dmitry Belyavskiy 2023-03-04 04:52:27 AEDT
Created attachment 3681 [details]
Proposed fix

ssh-keygen uses SHA1 algorithm (default) when verifying that the key is usable. It causes problems on recent systems where SHA1 is disabled for use with signatures (at least, RHEL 9+).

The proposed patch enforces using a sha2 algorithm for key verification.
Comment 1 Damien Miller 2023-03-08 11:07:33 AEDT
similar fix applied. Will be in OpenSSH 9.3, due soon
Comment 2 Damien Miller 2023-03-17 13:43:01 AEDT
OpenSSH 9.3 has been released. Close resolved bugs