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

Resolve the actual Hostname if in the config Hostname is %h #74

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Resolve the actual Hostname if in the config Hostname is %h #74

merged 1 commit into from
Jan 16, 2024

Conversation

narky
Copy link

@narky narky commented Jan 16, 2024

Refer to the man page:
https://manpages.debian.org/bookworm/openssh-client/ssh_config.5.en.html#Hostname
https://manpages.debian.org/bookworm/openssh-client/ssh_config.5.en.html#TOKENS

If the Hostname is a token such as %h, it should be resolved to the real Hostname from Host

tssh/login.go Outdated Show resolved Hide resolved
@lonnywong lonnywong merged commit 4f5b419 into trzsz:main Jan 16, 2024
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

Successfully merging this pull request may close these issues.

2 participants