Skip to content

Login

login

login(clusters: list[str]) -> list[Remote]

Create an SSH connection with the given clusters, reusing existing connections when possible.

Parameters:

Name Type Description Default
clusters list[str]

List of cluster hostnames to connect to. If empty, will attempt to connect to all clusters in the config that we don't already have an active connection to.

required

Returns:

Type Description
list[Remote]

A list of Remote objects, one for each cluster.

get_remote_without_2fa_prompt

get_remote_without_2fa_prompt(
    cluster_hostname: str,
) -> Remote | None

Returns the Remote object for a given cluster if we already have a connection to it.

If we don't already have a connection, this will not block for 2FA, and will return None.