Bug 3262

Summary: [FEATURE REQUEST] Enable a SSH list (ssh-list) that reads the .ssh/config and list hosts
Product: Portable OpenSSH Reporter: FIRESH KISHOR KUMAR <firesh>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: enhancement CC: djm
Priority: P3    
Version: 8.4p1   
Hardware: All   
OS: All   
Attachments:
Description Flags
sample of ssh-list none

Description FIRESH KISHOR KUMAR 2021-02-16 13:25:58 AEDT
Created attachment 3472 [details]
sample of ssh-list

i believe this feature maybe useful to be added. Below is the details. 
It would be really helpful to the community and also ssh users. 

Enable a command similar to 'ssh-keygen' representing 'ssh-list' to list out the hosts within the config file. This would help command line users to get the list of hosts directly as a view. 

I understand this can be achieved via alias on SHELL terminals, but it would be a nice feature to be added directly coming from ssh itself. 

I have attached a screenshot in which i have created alias to help me with that.
Comment 1 Damien Miller 2022-01-14 15:34:52 AEDT
I don't think this is something that needs to live in OpenSSH itself, it's easy enough to do with grep in a shell-script, sorry.
Comment 2 Damien Miller 2022-02-25 13:59:10 AEDT
closing bugs resolved before openssh-8.9