Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description field #29

Open
baptistebisson opened this issue Jun 13, 2022 · 4 comments
Open

Add description field #29

baptistebisson opened this issue Jun 13, 2022 · 4 comments

Comments

@baptistebisson
Copy link

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 ?

@quantumsheep
Copy link
Owner

quantumsheep commented Jun 13, 2022

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 :/

@baptistebisson
Copy link
Author

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.

@Shr3ps
Copy link

Shr3ps commented Jun 14, 2022

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

@baptistebisson
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants