nginx listening for ssh client requests and redirections

Maxim Dounin mdounin at mdounin.ru
Wed Dec 13 17:29:27 UTC 2017


Hello!

On Wed, Dec 13, 2017 at 10:55:03PM +0530, Sudarshan Soma wrote:

> I have the following  requirement.
> 
> 
> -> ssh username at ipaddr
> It has to direct the ssh requests to port 2035 on machine with IP , ipaddr
> 
> -> scp username at ipaddr
> It has to direct scp requests to port 2036 on machine with IP, ipaddr
> 
> The reason we want this way is , on machine with IP addr ipaddr, we are
> listening on 2035 for giving custom login shell.
>  on port 2036, we provide scp transfers.
> 
> For this to work, Can  Nginx run on port 22 on machine, ipaddr and add a
> rule to redirect to different ports based on protocol (ssh or scp)

This is a mailing list for nginx developers.  For user-level 
questions, please use the nginx@ mailing list instead.  See 
http://nginx.org/en/support.html for details.

Thank you.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list