[Bug 3247] SendEnv exclusion doesn't work as documented

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Jan 4 08:56:20 AEDT 2021


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

--- Comment #1 from Guilhem <guilhem at fripost.org> ---
> AFAICT it's not possible to clear a variable (or variable pattern) previously set in another file.
> […]
> Assuming I read the manual correctly, the following command should send neither X_FOO nor XYZ:

Ah I think I understand why now, it seems clearing SendEnv/SetEnv is
only done literally: -X_FOO and -X_* respectively clear X_FOO and X_*,
but I was unable to send all variables matching a pattern except one.

Also, `SendEnv -X_*` in /etc/ssh/ssh_config clears `SendEnv X_*` from
~/.ssh/config (or respectively ~/.ssh/config and CLI option) not the
opposite.

Is this really a bug or is it the intended behavior?  (Reading the
manual again I can see how it could be interpreted that way, but if so
the semantics are somewhat surprising.)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list