1234- / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
1 stars 0 forks source link

Enhancement: Overriding ssh port display in ssh/web interface #567

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a normal gitblit install
2. Proxy ssh trough haproxy, listening on port 22
3. Have no way to remove the :29814 port display in the ssh/web output

What is the expected output? What do you see instead?
There should be a way to configure gitblit to remove the port number from the 
git url outputs.

What version of the product are you using? On what operating system?
1.6.2

thanks,

bernd

Original issue reported on code.google.com by bernd.ze...@gmail.com on 26 Feb 2015 at 8:32

GoogleCodeExporter commented 9 years ago
Why are you proxying SSH?

Original comment by James.Mo...@gmail.com on 26 Feb 2015 at 1:54

GoogleCodeExporter commented 9 years ago
Various reasons:
1) security. having unfiltered, direct access to a production machine is a 
no-go. 
2) using a non-standard port for ssh needs special exceptions on company 
firewalls and explanations, why it should not be possible to use port 22.
3) allowing tomcat to bind low ports is a no-go. Using non-standard ports, too, 
see above.

Original comment by bernd.ze...@gmail.com on 26 Feb 2015 at 8:39

GoogleCodeExporter commented 9 years ago
I'll think on supporting a display port for ssh.  There is precedent for that 
since Gitblit supports x-forward headers for the http/s transports.

For now you could configure web.otherUrls to provide the correct URL.

Original comment by James.Mo...@gmail.com on 26 Feb 2015 at 9:10