'Return the server public keys.'

def getPublicKeys(self):

    ks = {}
    for filename in os.listdir(self.dataRoot):
        if ((filename[:9] == 'ssh_host_') and (filename[(-8):] == '_key.pub')):
            try:
                k = keys.Key.fromFile(os.path.join(self.dataRoot, filename))
                t = common.getNS(k.blob())[0]
                ks[t] = k
            except Exception as e:
                log.msg(('bad    public    key    file    %s:    %s' % (filename, e)))
    return ks
