Skip to main content

A helper package to easily add SSH support to Modal apps.

Project description

gotoni (Python Package)

A Python package providing utilities to easily inject an SSH daemon into Modal images and securely connect to running containers.

Installation

pip install gotoni

Usage

import modal
import gotoni

# 1. Add SSH into your Modal Image
image = modal.Image.debian_slim().pip_install("fastapi")
image = gotoni.add_ssh(image, key_path="~/.ssh/id_rsa.pub")

app = modal.App("my-ssh-app", image=image)

# 2. Start the SSH daemon in a modal function
@app.function(timeout=3600)
def debug_session():
    # This will print the SSH command to your terminal and block for the duration of the timeout
    gotoni.start_ssh(port=2222, timeout=3600)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gotoni-0.1.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gotoni-0.1.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file gotoni-0.1.4.tar.gz.

File metadata

  • Download URL: gotoni-0.1.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gotoni-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0047657dab9fb75eaddbe997793ad3acb59cc5291f97cc7f2ad9a42462c40b2a
MD5 0be1080e8c31f28eebb3157663808454
BLAKE2b-256 5e752283350984c94def73220ff42b00878d71c997c5daef1fbd3ca104db4e43

See more details on using hashes here.

File details

Details for the file gotoni-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: gotoni-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gotoni-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 98192567e4ea4189cb743fa3b822b968b011cc647d39060a20c15127e4e10591
MD5 4dc7fc8558c495027eab138a06f56058
BLAKE2b-256 e69a8647c663c69d0d674bf8ed53e19d67db13f7af2e292329806ab951bd0b31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page