Skip to main content

Swan SSH 🦢

GitHub stars PyPI Downloads

A simple, fast, and beautiful CLI tool to manage and synchronize SSH connections seamlessly across all your devices using a private Git repository. Made with Python, Typer, and Rich.

Installation

The recommended way to install Swan SSH is via pipx. This ensures it's installed in an isolated environment without disturbing your system's Python packages.

pipx install swan-ssh

⚠️ Important Note on pipx PATH: If you see a warning saying ~/.local/bin is not on your PATH, you simply need to run:

pipx ensurepath

Then close and reopen your terminal. Your swan command will now be globally available!

Usage Flow

  1. Initialize the workspace: First, create a private GitHub repository. Then, run swan init and paste its URL.

    swan init
    
  2. Add a Server:

    swan add
    # Prompts for label, ip, port, username, password
    # Automatically commits and pushes to your private repo behind the scenes!
    
  3. List Servers: Brings up a beautiful formatting table of your servers.

    swan list
    
  4. Connect Instantly: Using the short ID from the list command.

    swan connect <id>
    
  5. Transfer Files (Copy): Transfer files or directories to and from a server using its short ID.

    # Upload a local file to the server
    swan copy <id> /local/path /remote/path
    
    # Download a file from the server (-d flag)
    swan copy <id> /local/path /remote/path -d
    
    # Copy directories recursively with a progress bar (-r -p)
    swan copy <id> /local/dir /remote/dir -r -p
    
  6. Sync from Another Device: Installed Swan on your Macbook? Just run:

    swan init
    # Provide the same repo URL
    swan sync
    # Ready to connect!
    
  7. Remove a Server:

    swan rm <id>
    
  8. Clean up & Uninstall: If you ever want to completely remove the configuration directory (~/.swan-ssh) before uninstalling the tool, use:

    swan destroy
    pipx uninstall swan-ssh
    

Metadata

Release files for swan-ssh 1.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 swan-ssh 1.1.0
File Size Uploaded Provenance Actions
swan_ssh-1.1.0.tar.gz 10.4 kB Without provenance Details for swan_ssh-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swan-ssh 1.1.0
File Interpreter ABI Platform Actions
swan_ssh-1.1.0-py3-none-any.whl Python 3 none any Details for swan_ssh-1.1.0-py3-none-any.whl

Total release size: 21.1 kB

Release files / swan_ssh-1.1.0.tar.gz

Download URL swan_ssh-1.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
86b63ab53ccdc488fdcfded95f500d86c2f3049ff9b2d77c5fb504bdbf17a49f
BLAKE2b-256 checksum
How to use checksums
8bca4c63b5ea18a62923a828f85ccc92453b43b88b9ae86e275787efc76fd84c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / swan_ssh-1.1.0-py3-none-any.whl

Download URL swan_ssh-1.1.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc1d2fee5078afe4faff6e509ca667dd60bb3e45d0375bbac3dfd2faa335c7c7
BLAKE2b-256 checksum
How to use checksums
13a01b7851d244620ac24d9764cd4bc7866386eba1a02589a34ed336339c3963
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for swan-ssh 1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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