---
title: pod_ssh_command
sidebar_label: pod_ssh_command
sidebar_position: 3
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lium.io/llms.txt
> Use this file to discover all available pages before exploring further.

<!-- Generated by scripts/generate_sdk_reference.py. Do not edit directly. -->

# pod_ssh_command

```python
from lium.sdk import pod_ssh_command
```

Defined in `lium.sdk.client`.

```python
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()`](/developers/sdk/reference/client/lium#ssh) adds it. Unlike [`ssh()`](/developers/sdk/reference/client/lium#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.
