Skip to main content

SSH Driver

jumpstarter-driver-ssh provides SSH CLI functionality for Jumpstarter, allowing you to run SSH commands with configurable defaults and pass-through arguments.

Installation

pip3 install --extra-index-url https://pkg.jumpstarter.dev/simple/ jumpstarter-driver-ssh

Dependencies

  • ssh: Standard SSH client (usually pre-installed)

Configuration

Example configuration:

export:
  ssh:
    type: jumpstarter_driver_ssh.driver.SSHWrapper
    config:
      default_username: "root"
      ssh_command: "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
    children:
      tcp:
        type: jumpstarter_driver_network.driver.TcpNetwork
        config:
          host: "192.168.1.100"
          port: 22

Usage

The SSH driver provides a CLI command that accepts all standard SSH arguments:

# Basic SSH connection (uses port forwarding by default)
j ssh

# SSH with direct TCP address
j ssh --direct

# SSH with specific user
j ssh -l myuser

# SSH with other flags
j ssh -i ~/.ssh/id_rsa

# Running a remote command
j ssh ls -la

CLI Options

The SSH command supports the following options:

  • --direct: Use direct TCP address (default is port forwarding)

All other arguments are passed directly to the SSH command. The driver uses the configured SSH command and default username from the driver configuration.

Username Handling

The driver supports multiple ways to specify the username:

  1. -l username flag: Explicit username specification (takes precedence)
  2. Default username: Used when no username is specified in arguments

If no -l flag or user@hostname format is provided, the default username from the driver configuration will be used automatically.

API Reference

Driver Methods

.. autoclass:: jumpstarter_driver_ssh.client.SSHWrapperClient()
    :members: run

Configuration Parameters

Parameter Description Type Required Default
default_username Default SSH username to use when no username is specified in the command str no ""
ssh_command SSH command to use for connections str no "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR"

Required Children

  • tcp: A TcpNetwork driver instance that provides the connection details (host and port)

Release files for jumpstarter-driver-ssh 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jumpstarter-driver-ssh 0.9.0
File Size Uploaded
jumpstarter_driver_ssh-0.9.0.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jumpstarter-driver-ssh 0.9.0
File Interpreter ABI Platform
jumpstarter_driver_ssh-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 kB

Release files / jumpstarter_driver_ssh-0.9.0.tar.gz

Download URL jumpstarter_driver_ssh-0.9.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ae03cfcf2cfa16c716af9c51fe89f91f0a460e2143574786c20371c9da371f12
BLAKE2b-256 checksum
How to use checksums
e8f1b247190b0dee6ed2801ec05374c1c4a2f0b4e1fce85deb16c9b21552d0e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / jumpstarter_driver_ssh-0.9.0-py3-none-any.whl

Download URL jumpstarter_driver_ssh-0.9.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4057d75e6a0942b3c503f1fcbb879419b3e46d3d1aaba4f40b82070577b9804
BLAKE2b-256 checksum
How to use checksums
60b6268c5f06811563dc843fc7d70d0516c1e4541acb34444ff187107fd0484f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.1

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page