Skip to main content

setup-ssh

I made this because my lazy ass got tired of setting up SSH keys and remembering IP addresses whenever I wanted to use another computer.

It's mostly for my own Linux, Mac, and Windows machines. Add them, sync, and then use shortcuts like ssh mac or ssh linux. It sets up passwordless access in both directions between the accounts you add.

This project uses AI-driven development. I use AI tools to help write the code and docs and work through fixes.

Get it running

You'll need Python 3.11+ on the computer running setup. The other computers just need OpenSSH enabled and a working network connection. LAN is fine; I use NetBird too, but you need to set that up separately.

Install uv, then get the published package from PyPI:

uv tool install setup-ssh-cli
setup-ssh init

This works on Linux, macOS, and Windows. Update later with uv tool upgrade setup-ssh-cli.

Or use python -m pip install setup-ssh-cli inside a virtual environment.

Working from a clone of this repository? Use ./dev.sh install instead, or .\dev.ps1 install on Windows. setup-ssh init is the part that sets up your devices.

Include your current computer in the wizard. It'll ask for each device's name, address, username, OS, and SSH port. Keep the devices online for this first setup. Verify the host fingerprints when asked; you may need each account's password once so setup can install the keys.

After a successful sync:

ssh mac                  # from Linux
ssh linux                # from the Mac
scp notes.txt mac:~/

Use whatever names you gave your devices. Each computer keeps its own private key, and you don't need to run setup again just to SSH into something.

Add another computer

Enable SSH on it, then run these from your original setup computer:

setup-ssh add --no-sync
setup-ssh sync --skip-offline

That sets up whichever computers are available. Run sync again when the others are online so they get the new keys too. If everyone's online, setup-ssh add does both steps for you.

Commands I use

setup-ssh list                       # saved devices
setup-ssh sync --skip-offline        # update the ones that are online
setup-ssh --batch sync --skip-offline # same, with no password/trust prompts
setup-ssh check                      # test every direction; all devices online
setup-ssh remove desktop             # remove a device's managed access
setup-ssh doctor --os windows        # SSH setup instructions for an OS
setup-ssh --help

Removing a device needs to reach the other computers to revoke its access there. If some are offline, sync them later.

More details

The longer explanations live here:

  • Usage guide — all the options, files, backups, and how keys work.
  • Troubleshooting — when something inevitably refuses to connect.
  • Contributing — running it locally and working on the code.
  • Dev commands — install, update, test, and build.
  • Publishing — the PyPI setup and release steps.
  • Security — the access model and reporting issues.

MIT · beepboopbit

Metadata

Release files for setup-ssh-cli 0.1.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 setup-ssh-cli 0.1.0
File Size Uploaded Provenance Actions
setup_ssh_cli-0.1.0.tar.gz 73.9 kB With provenance Details for setup_ssh_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for setup-ssh-cli 0.1.0
File Interpreter ABI Platform Actions
setup_ssh_cli-0.1.0-py3-none-any.whl Python 3 none any Details for setup_ssh_cli-0.1.0-py3-none-any.whl

Total release size: 97.7 kB

Release files / setup_ssh_cli-0.1.0.tar.gz

Download URL setup_ssh_cli-0.1.0.tar.gz
Size 73.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f8758d16f9b959a2d622169f02d9fe6636ca3781aa38e8a9c74c7267d22b85d7
BLAKE2b-256 checksum
How to use checksums
f45f63ae7ed754eb5b5cd018ce6ece75670bf5f1bc9e46ea0463078a5ee395dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / setup_ssh_cli-0.1.0-py3-none-any.whl

Download URL setup_ssh_cli-0.1.0-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53eaffd521c14cc1c859b72d6709fcff13fb16d71e7aa423ab956e4464207b21
BLAKE2b-256 checksum
How to use checksums
f6fef3de602609f2c124e0c10c2b0dad043ff687d22692011611cd701485daaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for setup-ssh-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for setup_ssh_cli-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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