Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

Match Statement in sshd_config

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


martin at schimandl

Jun 9, 2009, 4:08 AM

Post #1 of 2 (1504 views)
Permalink
Match Statement in sshd_config

Hello Portable OpenSSH Team!

I recently read the man-page of sshd and found: The Match-Statement.
Which maybe could solve the problem i have.
(Get freeNX running on my UbuntuBox and connect to it with the
Windows-Client just using PublicKey Authentication )

But unfortunately the documentation of the Match-Statement refers to the
PATTERN section, which is non existent :-(

After a little bit of research on the internet i found this:
http://securepoint.com/lists/html/OpenSSH/2006-11/msg00076.html

So when could we expect this feature to be implemented in OpenSSH or an
updated man-page? :-)

Greetings from Vienna in Austria,
Martin Schimandl
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


dkg at fifthhorseman

Jun 9, 2009, 6:26 AM

Post #2 of 2 (1430 views)
Permalink
Re: Match Statement in sshd_config [In reply to]

On 06/09/2009 07:08 AM, Martin Schimandl wrote:
> But unfortunately the documentation of the Match-Statement refers to the
> PATTERN section, which is non existent :-(


I think it refers to PATTERNS (not PATTERN), and it seems to refer to
ssh_config(5), not sshd_config(5). What version of openSSH are you
using? With OpenSSH 5.1p1 (from debian testing), it looks like the
section is available in the referenced man page:

>> 0 dkg [at] pi:~$ man sshd_config | grep -C2 criteria
>> hmac-ripemd160,hmac-sha1-96,hmac-md5-96
>>
>> Match Introduces a conditional block. If all of the criteria on the
>> Match line are satisfied, the keywords on the following lines
>> override those set in the global section of the config file,
>> until either another Match line or the end of the file.
>>
>> The arguments to Match are one or more criteria-pattern pairs.
>> The available criteria are User, Group, Host, and Address. The
>> match patterns may consist of single entries or comma-separated
>> lists and may use the wildcard and negation operators described
>> in the PATTERNS section of ssh_config(5).
>>
>> The patterns in an Address criteria may additionally contain
>> addresses to match in CIDR address/masklen format, e.g.
>> “192.0.2.0/24” or “3ffe:ffff::/32”. Note that the mask length
>> 0 dkg [at] pi:~$ man ssh_config | grep -A3 ^PATTERNS
>> PATTERNS
>> A pattern consists of zero or more non-whitespace characters, ‘*’ (a
>> wildcard that matches zero or more characters), or ‘?’ (a wildcard that
>> matches exactly one character). For example, to specify a set of decla‐
>> 0 dkg [at] pi:~$


Have you tried looking in ssh_config(5) instead of sshd_config(5) ?

hth,

--dkg
Attachments: signature.asc (0.87 KB)

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.