Skip to content

SshConfig

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  1131813958["settings.SshConfig"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 1131813958
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Source code in src/clawd_code_sdk/models/settings.py
class SshConfig(ClaudeCodeBaseModel):
    model_config = ConfigDict(
        extra="forbid",
    )
    id: str
    """
    Unique identifier for this SSH config, used to match configs across settings sources
    """
    name: str
    """
    Display name for the SSH connection
    """
    ssh_host: str = Field(..., alias="sshHost")
    """
    SSH host in the form "user@hostname" or "hostname", or a host alias from ~/.ssh/config
    """
    ssh_port: int | None = Field(None, alias="sshPort")
    """
    SSH port (default 22)
    """
    ssh_identity_file: str | None = Field(None, alias="sshIdentityFile")
    """
    Path to the SSH identity file (private key)
    """
    start_directory: str | None = Field(None, alias="startDirectory")
    """
    Default working directory on the remote host; supports tilde expansion. Defaults to the remote user home directory
    """

id instance-attribute

id: str

Unique identifier for this SSH config, used to match configs across settings sources

name instance-attribute

name: str

Display name for the SSH connection

ssh_host class-attribute instance-attribute

ssh_host: str = Field(..., alias='sshHost')

SSH host in the form "user@hostname" or "hostname", or a host alias from ~/.ssh/config

ssh_identity_file class-attribute instance-attribute

ssh_identity_file: str | None = Field(None, alias='sshIdentityFile')

Path to the SSH identity file (private key)

ssh_port class-attribute instance-attribute

ssh_port: int | None = Field(None, alias='sshPort')

SSH port (default 22)

start_directory class-attribute instance-attribute

start_directory: str | None = Field(None, alias='startDirectory')

Default working directory on the remote host; supports tilde expansion. Defaults to the remote user home directory

:fa-brands-github: Show source on GitHub