Bug 3262 - [FEATURE REQUEST] Enable a SSH list (ssh-list) that reads the .ssh/config and list hosts
Summary: [FEATURE REQUEST] Enable a SSH list (ssh-list) that reads the .ssh/config and...
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 8.4p1
Hardware: All All
: P3 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 13:25 AEDT by FIRESH KISHOR KUMAR
Modified: 2022-02-25 13:59 AEDT (History)
1 user (show)

See Also:


Attachments
sample of ssh-list (136.56 KB, image/png)
2021-02-16 13:25 AEDT, FIRESH KISHOR KUMAR
no flags Details

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