Skip to main content

ssh-sse-cli

Connect to SSH servers through an HTTPS gateway with your usual OpenSSH commands.

Install

Requires Linux or macOS, Python 3.12 or newer, and OpenSSH.

With uv:

uv tool install --python 3.12 ssh-over-sse-cli

Or with pip:

pip install 'ssh-over-sse[cli]'

Use ssh-over-sse[all] with pip to install the gateway command too. Supported keys are Ed25519, RSA (2048–8192 bits), and ECDSA (P-256, P-384, P-521). Load encrypted keys into ssh-agent before use.

Configure SSH

Ask your administrator for the gateway URL and an allowed destination. Add an entry to your SSH configuration, replacing the example values:

Host my-server
    HostName 192.0.2.20
    Port 22
    User alice
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
    StrictHostKeyChecking yes
    ProxyCommand ssh-sse-cli --url https://gateway.example.com --ssh-host %n

Connect or transfer files normally:

ssh my-server
scp report.txt my-server:report.txt
sftp my-server

The client reads the destination, port, SSH user, and first available identity from the selected host. --target, --user, and -i override those values. If you use ssh -F, pass the same file using --ssh-config in the ProxyCommand. To pass outer command-line user or port overrides, add --user %r --target %h:%p.

Your public key must be authorized by the gateway account and destination server. Your private key stays on your computer. Keep SSH host-key verification enabled.

Use a different gateway key

By default, the gateway uses the selected Host entry's IdentityFile. If the gateway requires another identity, add -i to the ProxyCommand:

ProxyCommand ssh-sse-cli --url https://gateway.example.com --ssh-host %n -i ~/.ssh/gateway_key

IdentityFile still selects the destination's SSH key. The destination user and port are read from the Host entry; no separate gateway SSH user or port is needed.

Check your key

Open the gateway URL in a browser to view the landing page. Then run:

ssh-sse-cli --url https://gateway.example.com check

Without a host alias, the identity defaults to ~/.ssh/id_ed25519. To select a key or use an existing SSH host's identity:

ssh-sse-cli --url https://gateway.example.com -i ~/.ssh/id_ecdsa check
ssh-sse-cli --url https://gateway.example.com --ssh-host my-server check

The check requires no destination or SSH user. It verifies gateway access without connecting to a destination. Success prints Gateway SSH key authentication succeeded. and exits with status 0. Errors exit with status 1. HTTP 401 means the key was rejected; HTTP 500 indicates a gateway or server error.

For a direct backend check, use its HTTP address:

ssh-sse-cli --url http://192.0.2.10:7010 -i ~/.ssh/id_ecdsa check

SSH connections use the public HTTPS URL. A successful key check does not confirm destination permissions or the destination's SSH login.

Options

Option Purpose
--url Gateway root URL
--ssh-host Read connection and identity settings from an SSH host alias
--ssh-config Read an alternate SSH configuration file
--target Override the destination as HOST:PORT; bracket IPv6 addresses
--user Override the destination SSH username
-i, --identity Select an identity file
--config Read client settings from a file
--ca-file Trust a private HTTPS certificate authority
--log-level Set diagnostics to DEBUG, INFO, WARNING, or ERROR

Client settings default to ~/.config/ssh-over-sse/client.yaml when that file exists. Store your gateway URL there to omit --url:

url: https://gateway.example.com

Command-line options take precedence. Connection diagnostics appear on stderr; check prints its success message on stdout.

Troubleshooting

If authentication fails, check the URL, selected key, and gateway authorization. For encrypted keys, check that the identity is loaded into ssh-agent. Ask your administrator to confirm destination permissions if the key check succeeds but SSH cannot connect. After an interruption, start a new connection.

ssh-sse-cli --help

Metadata

Release files for ssh-over-sse-cli 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ssh-over-sse-cli 0.1.1
File Interpreter ABI Platform Actions
ssh_over_sse_cli-0.1.1-py3-none-any.whl Python 3 none any Details for ssh_over_sse_cli-0.1.1-py3-none-any.whl

Release files / ssh_over_sse_cli-0.1.1-py3-none-any.whl

Download URL ssh_over_sse_cli-0.1.1-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a9871f8d8667a5df92a1e3394a02e29bbd3c7c9e1065df8f7e3df9dd604b237
BLAKE2b-256 checksum
How to use checksums
3afce3f9a3202215d1cd88e2654ff4d8c2ddb0b4aef11e4bb840ac947dee3711
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ssh-over-sse-cli 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No 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