Skip to main content

sshauthproxy PyPI PyPI - Format PyPI - Python Version

sshauthproxy is a simple tornado-based daemon that exports your SSH keys from an AuthorizedKeysCommand via a simple HTTP-based API.

Why?

I am rather fond of sss_ssh_authorizedkeys and managing SSH keys in LDAP. However, I would like to be able to pull SSH keys from an LDAP directory on servers that I do not want to be added to the directory. Now, I can run sshauthproxy on a server in the directory, and pull the keys from any server I want.

While the default AuthorizedKeysCommand is sss_ssh_authorizedkeys, I am sure there are other AuthorizedKeysCommand that would be useful when proxied.

Installation

# On the machine publishing the keys (server):
pip install sshauthproxy

# Run the server:
sshauthproxy [--address=<the IP to listen on>] [--port=<port to listen on>]
# To proxy something other than sss_ssh_authorizedkeys, specify --command=<your command>.
# By default, the server binds to 0.0.0.0:8888 and [::]:8888.

# On the machine using the keys (client):
sudo curl https://raw.githubusercontent.com/quantum5/sshauthproxy/master/sshauth-client -o/usr/local/bin/sshauth-client
echo https://sshauth.example.com | sudo tee /etc/sshauth-server

# Now add the following lines to /etc/ssh/sshd_config on the client:
AuthorizedKeysCommand /usr/local/bin/sshauth-client
AuthorizedKeysCommandUser nobody

API

The API is very simple:

  • GET /: shows usage information.
  • GET /<username>: shows the SSH keys for the given username, if available. Otherwise, it returns 404 with a blank response body.

Metadata

Release files for sshauthproxy 0.1

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

Source distribution (sdist)

Source distribution for sshauthproxy 0.1
File Size Uploaded
sshauthproxy-0.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sshauthproxy 0.1
File Interpreter ABI Platform
sshauthproxy-0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 18.2 kB

Release files / sshauthproxy-0.1.tar.gz

Download URL sshauthproxy-0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
108a83a8af01db8bb1e56453c40da6bd8369ad40e71f17d8dad4879cd1ad999b
BLAKE2b-256 checksum
How to use checksums
856cd08899fd58fb134a2fe48392326a54bca4e1befa0f910604f7d2daa22b52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

Release files / sshauthproxy-0.1-py2.py3-none-any.whl

Download URL sshauthproxy-0.1-py2.py3-none-any.whl
Size 15.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
785356e1c9c807663efab8fe87d72bf28cf406f04ee54658fb4ee6da7fabdfac
BLAKE2b-256 checksum
How to use checksums
2efcc2e07477d3a59289154d5ee9bc34bdb421fa419bf8637a52f219eab7a8e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.3

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

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