hi, you cannot connect to port 22 (ssh) via an apache server. the apache is a reverse proxy for web access (http/https). if you want to access your gitlab instance git "g...@frontend.com" you can put something like
[url "http://frontend.com"] insteadOf = g...@frontend.com: so your git-client will silently switch to http. if you don't want to enter your password again and again, you can also specify a credentials cache in your "~/.gitconfig": [credential] helper = cache --timeout=7200 now you don't have to enter your password for the next two hours. if you really want to access your repositories with "ssh" and your public-keys, you can use Orca <https://github.com/clusterit/orca> is i announced here <https://groups.google.com/forum/#!topic/gitlabhq/pt5AUxXxrEU>. Orca is like a reverse proxy but it is for ssh. </usc> Am Dienstag, 12. Mai 2015 16:35:23 UTC+2 schrieb GREGORY BOUE: > > Hi, > > I did a lot of searches on internet but I didn't find a solution so I post > my question here. > > In my company, there is Gitlab on server Ubuntu 12.04. It's reachable > throught an apache frontend (Apache 2.2.23). > The url of the frontend is : *http://frontend.com/ <http://frontend.com/>* > A reverse proxy has been configured in httpd.conf of apache frontend and > the gitlab server is reachable from this url : > *http://frontend.com/sources/ <http://frontend.com/sources/> *On the > gitlab server, the *relative_root_url* has been set to /sources. > I created my ssh key and associated it to my gitlab account and it's ok. > > When i try to do this command it's fine : > *git clone http://* > > *frontend.com/sources/mygroup > <http://frontend.com/sources/mygroup>/myproject.git*When i try ssh > connection via gitlab server ip it's fine : > *git clone git@X.X.X.X**:mygroup/myproject.git* > > But when i try ssh connection through the apache frontend : > *git clone git@**frontend.com <http://frontend.com>* > *:mygroup/myproject.git* > or > *git clone git@**frontend.com <http://frontend.com>* > *:sources/mygroup/myproject.git* > > The password for git on frontend.com it's asked. > > I don't know how to configure my frontend and/or my gitlab server to > connect to gitlab through frontend via ssh, Can anyone help me ? > > Thanks you. > -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/8c3ab0bd-b91e-4d81-bbb0-c84a1e3810fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.