right match rule for port and address in sshd_config

daggs at gmx.com daggs at gmx.com
Mon Apr 28 04:30:15 EST 2014


Greetings,

I want to create a set of rules that will be in affect when I connection originates from outside of my local lan (internet) and on a specific port, this is what I've wrote:
Match LocalPort 11111, Address *,!10.0.0.0/24
but when I start ssh, I get this error:
Invalid LocalPort '11111,' on Match line
/etc/ssh/sshd_config line 176: Bad Match condition

why is that? how can I solve it?

Thanks.


More information about the openssh-unix-dev mailing list