SFTP connection forwarding

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

I was wondering if anyone knew how to setup sftp connection forwarding.
 What I mean by this is that a user tries to connect via sftp to a
remote server, say login.domain.com.  I want this server (the login
server) to then redirect the client to another server based on which
client it is.

For example, user1's files are on server1.domain.com and user2's files
are on server2.domain.com.  But if either of them connects to
login.domain.com, they will be forwared to their correct server
(server1 for user1 and server2 for user2).

I know something like this is possible, because my university did it -
I just have no idea where to start.

Any help would be greatly appreciated.

Site Timeline