com.google.gerrit.httpd.raw
Class SshInfoServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gerrit.httpd.raw.SshInfoServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SshInfoServlet
extends javax.servlet.http.HttpServlet

Servlet hosting an SSH daemon on another port. During a standard HTTP GET request the servlet returns the hostname and port number back to the client in the form ${host} ${port}.

Use a Git URL such as ssh://${email}@${host}:${port}/${path}, e.g. ssh://sop@google.com@gerrit.com:8010/tools/gerrit.git to access the SSH daemon itself.

Versions of Git before 1.5.3 may require setting the username and port properties in the user's ~/.ssh/config file, and using a host alias through a URL such as gerrit-alias:/tools/gerrit.git:

 Host gerrit-alias
  User sop@google.com
  Hostname gerrit.com
  Port 8010
 

See Also:
Serialized Form

Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse rsp)
              throws IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
IOException


Copyright © 2011. All Rights Reserved.