sshd trickery possible?

Doug Hunley doug.hunley at gmail.com
Thu Dec 6 16:10:40 PST 2012


On Thu, Dec 6, 2012 at 3:35 PM, Doug Hunley <doug.hunley at gmail.com> wrote:
> I'm wondering if anyone knows if this is possible or if I'm asking for
> something that's simply not available.
>
> I currently have an ssh daemon that has two listen directives:
> Listen 22
> Listen 443
>
> the idea here is that port 22 is used internally, while port 443 is
> for external users. This works fine, no issues. I then have a section
> like:
> Match user doug
>   specific settings to this user here
>
> and that works fine as well. What I want to do, if possible, is something like
> Match user doug
>   Match port 443
>      some specific setting to this user but only when connecting via 443
>
> and I cannot find an example of how to do this anywhere. I know that I
> could split this out and have two different sshd daemons, one for 22
> and one for 443 and then each has its own config but that's a
> maintenance nightmare when you scale this up to the number of users
> I'm working with. Can anyone point me to a solution?
>
> Thanks!

Looks like a closer reading of the man page gave me my answer. Don't
know how I skimmed over it before. Sorry for the noise.

Match user doug localport 443 is the answer, btw


--
Douglas J Hunley (doug.hunley at gmail.com)
Twitter: @hunleyd                                               Web:
douglasjhunley.com
G+: http://goo.gl/sajR3


More information about the Linux-users mailing list