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

Wrong name is displayed when running ggh #10

Open
rmilesson opened this issue Jan 9, 2025 · 0 comments
Open

Wrong name is displayed when running ggh #10

rmilesson opened this issue Jan 9, 2025 · 0 comments

Comments

@rmilesson
Copy link

Hi!

This little project is awesome. Just found it through the Console newsletter.

However, I found that it shows the wrong name for a session if there's several entries in ~/.ssh/config with the same HostName. ggh just picks the last entry matching the HostName for the session.

ggh should check if the User matches as well to fix this.

Here's an image demonstrating the problem:
image

Here's a snippet from ~/.ssh/config that could be used to debug the issue:

Host correct
	HostName non-unique-hostname
	User correct

Host incorrect
	HostName non-unique-hostname
	User incorrect
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

1 participant