sshs icon indicating copy to clipboard operation
sshs copied to clipboard

Add description field

Open baptistebisson opened this issue 2 years ago • 4 comments

First, thanks for this great tool !

The only thing that is missing for my usage is a description field. It's not always easy to remember which project is on which host.

Example:

  • Hostname = app-web-prd04
  • Description = Owncloud, WordPress

We could search either on the hostname or the description field.

But this field is not available: https://linux.die.net/man/5/ssh_config

Is it possible ? Maybe it would require another config file ?

baptistebisson avatar Jun 13 '22 15:06 baptistebisson

We could add a custom Description field, I don't think that it will mess with ssh tools but it might not be a great idea to add features beyond sshconfig's schema.

Also I don't want to add another file because it will add unnecessary setup complexity :/

quantumsheep avatar Jun 13 '22 16:06 quantumsheep

Thanks for the feedback.

I don't see any problem to add more complexity for "Advanced usage". The default parse of ssh config file will do the work and if we want to have more details, we only need to add a single configuration file.

baptistebisson avatar Jun 13 '22 18:06 baptistebisson

It might be cleaner to use and parse comments in the SSH config file (to avoid conflicts with others binary that use this configuration file).

An example might be:

# sshs-desc: Owncloud, WordPress
Host app-web-prd04

Shr3ps avatar Jun 14 '22 16:06 Shr3ps

It might be cleaner to use and parse comments in the SSH config file (to avoid conflicts with others binary that use this configuration file).

An example might be:

# sshs-desc: Owncloud, WordPress
Host app-web-prd04

Even easier, I don't know why I thought that we can't use comment in this file.

baptistebisson avatar Jun 14 '22 16:06 baptistebisson