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 the keys of the user specified by the credentials, and check if one matches the blob in the credentials.
source code

Inherited from twisted.conch.checkers.SSHPublicKeyDatabase: requestAvatarId

Class Variables

Inherited from twisted.conch.checkers.SSHPublicKeyDatabase: credentialInterfaces

Method Details

checkKey(self, credentials)

source code 

Retrieve the keys of the user specified by the credentials, and check if one matches the blob in the credentials.

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