Skip to main content

ssh-over-sse

Use your usual SSH commands through an HTTPS gateway. Install ssh-sse-cli on your computer and ssh-sse-gateway on a host that can reach your SSH servers.

Install

Requires Python 3.12 or newer and OpenSSH. The client supports Linux and macOS. The gateway needs ssh-keygen available.

Choose the commands you need with pip:

Install Commands
pip install 'ssh-over-sse[cli]' ssh-sse-cli
pip install 'ssh-over-sse[gateway]' ssh-sse-gateway
pip install 'ssh-over-sse[all]' Both

ssh-over-sse[cli,gateway] also installs both. Select an option when installing; the base package alone does not install commands.

Or use uv to install either command as a tool:

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

Supported keys are Ed25519, RSA (2048–8192 bits), and ECDSA (P-256, P-384, P-521). Your private key stays on your computer. Load encrypted keys into ssh-agent before connecting.

Connect

Ask your administrator for the gateway URL and your SSH destination. Add an entry to your SSH configuration using your own 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

The client reads the destination, port, user, and identity from that host entry. Use the gateway's root URL; no additional path is needed.

Connect and transfer files normally:

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

Your public key must be authorized by both the gateway and destination server. Verify the destination's host key before your first connection.

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 gateway access

Open the gateway URL in a browser to see its landing page, then check your key:

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

The default identity is ~/.ssh/id_ed25519. Select another key with -i, or use --ssh-host my-server to read its identity from your SSH configuration:

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

Success prints Gateway SSH key authentication succeeded. and exits with status 0. Failure exits with status 1. This checks gateway access; destination access is verified when you connect. Direct backend key checks also accept an HTTP URL. SSH connections use HTTPS.

Run a gateway

Save your public HTTPS URL in ~/.config/ssh-over-sse/gateway.yaml:

server:
  audience: https://gateway.example.com
  listen: 0.0.0.0:7010
  ingress_network_restricted: true

By default, authorized users can connect to any reachable SSH host and port. Destination restrictions are optional. Authorize users' public keys in the gateway account's ~/.ssh/authorized_keys. Restrict the configuration file to its owner. Limit backend access to your trusted network before setting ingress_network_restricted: true.

Validate the configuration, then start:

ssh-sse-gateway --check-config
ssh-sse-gateway

With OCI providing HTTPS, the gateway uses plain HTTP on port 7010 and needs no TLS certificate. The default listener is 127.0.0.1:7010; the example above accepts ingress on all interfaces.

Help

ssh-sse-cli --help
ssh-sse-gateway --help

Release notes are in CHANGELOG.md.

Metadata

Release files for ssh-over-sse 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 0.1.1
File Interpreter ABI Platform Actions
ssh_over_sse-0.1.1-py3-none-any.whl Python 3 none any Details for ssh_over_sse-0.1.1-py3-none-any.whl

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

Download URL ssh_over_sse-0.1.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
269d8f911f89290d20a44853351ad29f0704cd418947c0a6fe35deb8fa99b8c4
BLAKE2b-256 checksum
How to use checksums
cbc6ac50b5970a2946516cf0e3e2d21fda2003cb3354a23bb4632542d171c681
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 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