Simple CLI to manage SSH config entries for RunPod.
Project description
RunPod SSH Setup
Tired of manually updating your ~/.ssh/config file every time you spin up a
RunPod instance?
runpod_ssh_setup is a simple command-line tool that automates this. It takes the
standard SSH connection command provided by RunPod and automatically creates or updates
a corresponding Host entry in your SSH configuration file.
This allows you to connect to your pods using a simple alias (e.g., ssh runpod)
instead of the full command.
How it Works: Example
-
Copy the SSH command from the RunPod UI:
Pods → your pod → Connect → Connection Options → SSH → SSH over exposed TCP
-
Run the tool with your desired host alias:
runpod_ssh_setup \ --host runpod \ --ssh_cmd "ssh root@157.517.221.29 -p 19090 -i ~/.ssh/id_ed25519"
-
The tool adds or updates the entry in
~/.ssh/config:Host runpod HostName 157.517.221.29 User root Port 19090 IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes
Options
--config: Path to your SSH config file (default:~/.ssh/config).--host: The alias to use in theHost <ALIAS>entry (required).--disable_host_key_checking: If present, adds lines that disable host key checks.--ssh_cmd: Must be in the exact formatssh <USER>@<HOST> -p <PORT> -i <IDENTITY_FILE>, as provided by RunPod.
Disabling Host Key Checking
Adding --disable_host_key_checking inserts the following lines into the Host block:
Host runpod
...
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
By default, host key checking is enabled.
Security Note: Disabling host key checking can be convenient for frequently changing or ephemeral hosts (such as cloud instances), but it increases the risk of man-in-the-middle attacks. We recommend keeping host key checks enabled in production or untrusted environments.
Installation
Option 1: Install From PyPI
Using pip:
pip install runpod_ssh_setup
This installs runpod_ssh_setup in your current environment (system-wide or
virtualenv).
For a global, isolated install, use pipx
(recommended):
pipx install runpod_ssh_setup
Option 2: Build From Source
If you have Poetry installed:
poetry lock
poetry install
Then run:
poetry run runpod_ssh_setup ...
Or build a wheel and install it via pipx:
poetry build
pipx install dist/runpod_ssh_setup-*.whl
Then you can run runpod_ssh_setup directly.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runpod_ssh_setup-1.0.1.tar.gz.
File metadata
- Download URL: runpod_ssh_setup-1.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.9 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39d7d2cc922ed4bf5092f505a3db75ae3e164dffde61bb83ca7655a5faa18773
|
|
| MD5 |
8e2511bef07a397b168332359dace8ac
|
|
| BLAKE2b-256 |
bc542267bf3a3bb6260ad2a38ba80f972038a39c8532af78f601171aeee106ac
|
File details
Details for the file runpod_ssh_setup-1.0.1-py3-none-any.whl.
File metadata
- Download URL: runpod_ssh_setup-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.9 Darwin/24.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063ea87797c7d60a9965d610c39ccb518c160a1839e278845e9ed4182517d0d4
|
|
| MD5 |
a9f77d0a71c658d60eb5740266b8c1b0
|
|
| BLAKE2b-256 |
708f7a952ff8b8768179fb6c594b6c4de8937c68bc072f2d2615e62a2af23594
|