| Summary: | Support for Match configuration directive to also include subsystems | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | John Olsson <john.gm.olsson> |
| Component: | sshd | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | NEW --- | ||
| Severity: | enhancement | CC: | djm |
| Priority: | P2 | ||
| Version: | 5.9p1 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
John Olsson
2012-02-02 01:32:51 AEDT
At present, this is not possible - the matching happens around authentication time, well before the subsystem is requested.
It would be conceivably possible to add another pass through the config file, but it would be pretty confusing since some combinations of options would never make sense. E.g.
Match user djm subsystem sftp
PasswordAuthentication no
ChrootDirectory /blah
This could not be evaluated at authentication time and so the PasswordAuthentication directive could not be applied.
Another approach might be to have another Match-like keywords that is used just for stuff that happens later (say "SessionMatch") that could therefore have access to session-time information. IMO that's confusing and complicated in its own way too.
|