[Bug 3485] New: Allow percent expansion in Forward host (and port?) in addition to path
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Oct 19 09:01:11 AEDT 2022
https://bugzilla.mindrot.org/show_bug.cgi?id=3485
Bug ID: 3485
Summary: Allow percent expansion in Forward host (and port?) in
addition to path
Product: Portable OpenSSH
Version: 9.1p1
Hardware: amd64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: M.J.Tadema at protonmail.com
I was trying to use percent expansion in a LocalForward directive to
dynamically change the listening hostname based on the hostname that I
was connecting to, and realized that this was not possible. In the man
pages for ssh_config it does mention that the expansion only works for
Unix domain socket paths, though near the end in the TOKENS section it
briefly mentions percent expansion works for LocalForward in general,
hence my confusion.
I went looking through the code and noticed that it seems like the
choice was made deliberately to only expand paths and not the hosts and
ports too.
I realize that my usecase might be too specific, and I could not find
anybody else complaining about this particular "problem" so perhaps I'm
the only one, but I think it would be nice to have this feature.
If there is a good reason for not percent expanding forward hosts (and
ports) please let me know.
Best regards,
Matthijs
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list