Skip to main content

setup-ssh icon

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

On a Linux target with systemd and UFW, run the guided preparation locally as your normal user. Repeat --allow-from for each trusted peer source IP.

setup-ssh prepare-local --allow-from 10.10.0.20 --allow-from 10.10.0.23

The command previews the changes and asks before using sudo to generate missing host keys, enable OpenSSH, and add the specified UFW rules. Use --dry-run to preview without invoking sudo. For other platforms and firewalls, see setup-ssh doctor. Once SSH is reachable, 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 dashboard                  # live device and connection status (optional extra)
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

Install the dashboard and copy an inventory to another enrolled device.

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.2.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.2.0
File Size Uploaded Provenance Actions
setup_ssh_cli-0.2.0.tar.gz 84.2 kB With provenance Details for setup_ssh_cli-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 115.2 kB

Release files / setup_ssh_cli-0.2.0.tar.gz

Download URL setup_ssh_cli-0.2.0.tar.gz
Size 84.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2f8e6f8c2248750f1e92053e925b90b0aa648e6dd0cac9f9fac61edd1b6beb1e
BLAKE2b-256 checksum
How to use checksums
42d3ac818ff286ab2e5de29ba043ea8e2f733e711006e85ddf272e94387b0653
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 Nov 23, 2026.

Transparency log

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

Download URL setup_ssh_cli-0.2.0-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4758e99e6543da1d51c3a128e002310b77dde6a2f02f554512603660a4c2b75e
BLAKE2b-256 checksum
How to use checksums
2aa9a3b7038c03301f694e6ad86caa5ecd308e6e961c59c85099a61c1542ba1b
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 Nov 23, 2026.

Transparency log

Security for setup-ssh-cli 0.2.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.2.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 Nov 23, 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.2.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