Package buildbot :: Module manhole :: Class AuthorizedKeysManhole
[frames | no frames]

Class AuthorizedKeysManhole

 ComparableMixin --+
                   |
 Service --+       |
           |       |
MultiService --+   |
               |   |
    _BaseManhole --+
                   |
                  AuthorizedKeysManhole


This Manhole accepts ssh connections, and requires that the prospective client have an ssh private key that matches one of the public keys in our authorized_keys file. It is created with the name of a file that contains the public keys that we will accept.
Method Summary
  __init__(self, port, keyfile)
    Inherited from MultiService
  __iter__(self)
  addService(self, service)
  getServiceNamed(self, name)
  privilegedStartService(self)
  removeService(self, service)
  stopService(self)
    Inherited from Service
  __getstate__(self)
  disownServiceParent(self)
  setName(self, name)
  setServiceParent(self, parent)
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Class Variable Summary
list compare_attrs = ['port', 'keyfile']
    Inherited from MultiService
Implements __implemented__ = <implementedBy twisted.application.ser...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Service
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
NoneType name = None                                                                  
NoneType parent = None                                                                  
int running = 0                                                                     

Method Details

__init__(self, port, keyfile)
(Constructor)

Parameters:
port - what port should the Manhole listen on? This is a strports specification string, like 'tcp:12345' or 'tcp:12345:interface=127.0.0.1'. Bare integers are treated as a simple tcp port.
           (type=string or int)
keyfile - the name of a file (relative to the buildmaster's basedir) that contains SSH public keys of authorized users, one per line. This is the exact same format as used by sshd in ~/.ssh/authorized_keys .
Overrides:
buildbot.manhole._BaseManhole.__init__

Class Variable Details

compare_attrs

Type:
list
Value:
['port', 'keyfile']                                                    

Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 http://epydoc.sf.net