[Bug 3543] Add a provision to force query of login ID

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Feb 21 15:01:46 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3543

--- Comment #5 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Carl Ponder from comment #4)
> Here's something I *was* able to contrive. I generate a provisional
> config-file that gets included back into the main one:
> ```
> Match originalhost thatHost exec "~/.ssh/HACK/queryID thatHost"
> include ~/.ssh/HACK/thatHost

You can put the Include inside the Host block so you only need to put
"User $whatever" in the file that changes:

in ~/.ssh/config:
Host foo
  Include ~/.ssh/foo.user
  Hostname bar
  UpdateHostKeys no

then write "User $LOGIN" into ~/.ssh/foo.user

> sync

Aside: you probably don't need the sync (and it can have a negative
impact on some workloads).

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list