sshs icon indicating copy to clipboard operation
sshs copied to clipboard

Possible to use `know_hosts` to populate the `/ssh/config` file

Open jarrodCoombes opened this issue 3 years ago • 2 comments

Since the known_hosts file includes all the hosts you connect to, it would be nice to somehow use that as the basis to build out the menu. Since know_hosts lacks things that sshs needs, the user would still need to add info, but it would be a solid start.

Thinking something like

sshs --buildconfig

Would produce or append to the \.ssh\config with as much info in to as it could possible get from known_hosts and then the user could edit from there, could comment out all the new lines to start. This would greatly speed up implementation, especially for people who have a lot of SSH servers they deal with (my known_hosts file has over 50 lines as as example).

jarrodCoombes avatar Feb 07 '22 12:02 jarrodCoombes

Any news on this?

Plaenkler avatar Mar 02 '22 10:03 Plaenkler

@Plaenkler there is PR #8 but we're stuck with specifications :/

quantumsheep avatar Mar 02 '22 10:03 quantumsheep