Re: force port redirection for list of users

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Tue, Jul 18, 2017 at 6:43 PM, Darren Tucker <dtucker@xxxxxxxxxx> wrote:

> On Sun, Jul 9, 2017 at 2:41 AM, Sudarshan Soma <sudarshan12s@xxxxxxxxx>
> wrote:
>
>> Hi ,
>> I have the following requirement .
>> other than following users, any other user sshd connection should be
>> redirected to 2024 instead of port 22.
>>
>
> I can't think of a way to "transparently" redirect to another port, but if
> you have one sshd listening on both you can use "Match LocalPort 2024" to
> configure different behaviour on that port.
>
> What are you trying to achieve with this redirection?
>

Depending on what you're trying to achieve, maybe

Match someuser
  ForceCommand ssh -A -p 2024 localhost

although it won't be transparent for non-pubkey authentications.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux