Within my network there is currently a computer than handles a bunch of IT repos, all on the 'git' user. Users can also login on their own accounts to run other programs. Currently they do this on the same machine as the git server. I would like to make this happen on another computer.
I am trying to see if it's possible to make the ssh server the default for port 22 on the router, but forward any connections to the git user on that machine to the old server, where git still is.
That way [email protected] logs into the new server, but [email protected] logs into the existing server.
All the machines involved run/will run ubuntu.
I do not want users to have to manually set there git remotes to login via the new computer. that is not a solution. It must be seamless :)
You may set SHELL for user git to your own script (in bash or say in python). That will connect to the old server and will act as proxy for this two connections. Of cause you need to deal with users' public keys to forward authentication as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With