[Bug 3143] New: Add the ability to capture wildcard portion of Host keyword in ssh_config
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Mar 31 06:10:46 AEDT 2020
https://bugzilla.mindrot.org/show_bug.cgi?id=3143
Bug ID: 3143
Summary: Add the ability to capture wildcard portion of Host
keyword in ssh_config
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: lavneetpuri at gmail.com
Use Case:
`ssh pc-1` would connect to remote-cpu-1.domain.com
Currently we can use `%h` token but it captures the whole argument to
Host keyword (i.e pc-1). This feature would enable capturing just the
pc number (ie. 1) by using a new `%m` token for example. It is useful
to simplify connection to complex ssh hostnames
For the above use-case, the ssh config can be specified as follows:
Host pc-*
Hostname remote-cpu-%m.domain.com
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list