'Return the server private keys.'

def getPrivateKeys(self):

    privateKeys = {}
    for filename in os.listdir(self.dataRoot):
        if ((filename[:9] == 'ssh_host_') and (filename[(-4):] == '_key')):
            fullPath = os.path.join(self.dataRoot, filename)
            try:
                key = keys.Key.fromFile(fullPath)
            except IOError as e:
                if (e.errno == errno.EACCES):
                    key = runAsEffectiveUser(0, 0, keys.Key.fromFile, fullPath)
                    privateKeys[key.sshType()] = key
                else:
                    raise
            except Exception as e:
                log.msg(('bad    private    key    file    %s:    %s' % (filename, e)))
            else:
                privateKeys[key.sshType()] = key
    return privateKeys
