remote port forwarding based on protocol

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

 



Hi,
I have the following  requirement.


-> ssh username@ipaddr
It has to direct the ssh requests to port 2035 on machine with IP , ipaddr

-> scp username@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.

I tried putting remote port forwarding rule at machine, ipaddr as below for
first request,
ssh  -R 22:localhost:2035 root@localhost

>From external source, from my laptop:
ssh username@ipaddr still not work, Please suggest are there ways to add
redirections differentiating ssh, scp .

Regards,
Grover
_______________________________________________
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