I've looked around Google for a solution to this problem and I may be horribly over-complicating it.
All I'm looking for is a way to automatically forward certain ports as soon as a user logs in.
Basically, I'm working on a website which serves as a portal to different server-software running on the host. I want to create a limited number of SSH users with heavy restrictions; the only point of them having an account is to forward ports.
The question I have is whether it's possible for me to setup some configuration option in SSH so that whenever one of these restricted users log-in, they automatically have a number of host ports forwarded to them.
The idea here is that the website I'm making just has a list of URLs pointing to http://localhost:PORTS. I looked into "EscapeChar" and I suppose I could setup a script that forwards the ports by using something similar to, "~C-L PORT:localhost:PORT".
Is there something more simple? Am I missing something here?