Mailing List Archive

[Bug 3343] New: Display host provided as argument with "ssh -G"
https://bugzilla.mindrot.org/show_bug.cgi?id=3343

Bug ID: 3343
Summary: Display host provided as argument with "ssh -G"
Product: Portable OpenSSH
Version: 8.7p1
Hardware: Other
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs@mindrot.org
Reporter: vincent@bernat.ch

Created attachment 3546
--> https://bugzilla.mindrot.org/attachment.cgi?id=3546&action=edit
Add original hostname to output of "ssh -G"

Hey!

In some occasions, it is interesting to be able to extract the host
provided as an argument. In my case, this is useful when wrapping the
SSH command to update the window title with the hostname or add
additional arguments depending on the target host. This can currently
be done with `ssh -G` but the returned hostname is the `Hostname`
option which may not match the hostname provided on the command-line.
In my case, it is often an IP address which is not helpful to display
as a window title.

Would it be possible to add the original hostname to the output of `ssh
-G`? Attached a tiny patch for this purpose.

--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs