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

Class AuthorizedKeysChecker

source code

twisted.conch.checkers.SSHPublicKeyDatabase --+
                                              |
                                             AuthorizedKeysChecker

Accept connections using SSH keys from a given file.

SSHPublicKeyDatabase takes the username that the prospective client has requested and attempts to get a ~/.ssh/authorized_keys file for that username. This requires root access, so it isn't as useful as you'd like.

Instead, this subclass looks for keys in a single file, given as an argument. This file is typically kept in the buildmaster's basedir. The file should have 'ssh-dss ....' lines in it, just like authorized_keys.

Instance Methods
 
__init__(self, authorized_keys_file) source code
 
checkKey(self, credentials)
Retrieve files containing authorized keys and check against user credentials.
source code

Inherited from twisted.conch.checkers.SSHPublicKeyDatabase: __providedBy__, __provides__, getAuthorizedKeysFiles, requestAvatarId

Class Variables

Inherited from twisted.conch.checkers.SSHPublicKeyDatabase: __implemented__, credentialInterfaces

Method Details

checkKey(self, credentials)

source code 

Retrieve files containing authorized keys and check against user credentials.

Overrides: twisted.conch.checkers.SSHPublicKeyDatabase.checkKey
(inherited documentation)