def get_ssh_keylist_by_name(manager, name):
    """Returns a keylist with the given named key, or empty if not found"""
    all_ssh_keys = manager.get_all_sshkeys()
    ssh_keys = []
    for key in all_ssh_keys:
        if key.name == name:
            ssh_keys.append(key)

    return ssh_keys