[Bug 3343] New: Display host provided as argument with "ssh -G"

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Aug 26 17:49:36 AEST 2021


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 at mindrot.org
          Reporter: vincent at 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.


More information about the openssh-bugs mailing list