Im trying to set up ssh/git access through a ssh gate but googleing has come up empty. Basically I want any connection to my ssh gate from the user git to be forwarded to my ssh server so that pushes and pulls can me made remotely. However if any other user connects I want them to be logged in as usual.
internet--(git)-->gate--(git)--> git-server internet--(user)-->gate
Any help or advice would be much appreciated.
One way to do this on the client side is to add the following to your .ssh/config:
Host git.life-hack.org HostName git.life-hack.org ProxyCommand ssh firstname.lastname@example.org nc %h %p User git
But I was hoping that there would be a way to do this server side.