Check connection port

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

hi, is there any way, that ssh checks the connection port on login? I
know there is a patch, but it does not compile with the latest version
of ssh. The idea is the following: sftp users should connect on port 22,
but users, with sudo capabilities should only be able to login on
another port, that is hidden with port knocking. I would like to use
something like this

Match LocalPort 22
        ChrootDirectory /var/jail
        X11Forwarding no
        AllowTcpForwarding no

Is there any chance, openssh will support that?

Site Timeline