Skip to main content

pod_ssh_command

from lium.sdk import pod_ssh_command

Defined in lium.sdk.client.

def pod_ssh_command(pod: lium.sdk.models.PodInfo) -> Optional[str]:

The pod's ssh command for a shell, with the host-key options and without a key.

ssh -p <port> -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=<pin> <user>@<host> (ssh_target() + openssh_host_key_options(), shell-quoted): what lium ps --format json and lium describe show as ssh_command. It carries no -i <key> — the key path lives in the SDK config, not in the pod record; ssh() adds it. Unlike ssh() it creates no pin file (only the directory): a listing leaves nothing per pod behind. None when the pod has no ssh command yet or the API's value is not ssh <user>@<host> [-p <port>]; both views keep the raw ssh_cmd next to it.