Sign inSign up

sourcelair/stolos-auth

By sourcelair

•Updated over 8 years ago

Authentication CLI program, which logs a Stolos user in, using her key hash.

Image
0

1.5K

sourcelair/stolos-auth repository overview

⁠Stolos Auth

Authentication CLI program, which logs a Stolos user in, using her key hash.

⁠Usage

Usage: stolos-auth [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  match  Fetch SSH public keys that match the given...
⁠stolos-auth match
Usage: stolos-auth match [OPTIONS] LOGIN_USER LOGIN_KEY

  Fetch SSH public keys that match the given fingerprint.

  Example ssd_config: AuthorizedKeysCommand stolos-auth %u %f

Options:
  --user TEXT          The user to authenticate.
  --stolos-url TEXT    The URL of the Stolos server to use.
  --stolos-token TEXT  The token to use for connecting to Stolos.
  --help               Show this message and exit.

Example directive in /etc/ssh/sshd_config

AuthorizedKeysCommand $ /usr/local/bin/docker run --rm \
    -e STOLOS_AUTH_URL=https://api.stolos.io \
    -e STOLOS_AUTH_TOKEN=24fcf66e22680c70183549f9da2aa558a6bdd144
    -e STOLOS_AUTH_USER=stolos \
    sourcelair/stolos-auth match %u %f
AuthorizedKeysCommandUser stolos

Tag summary

Content type

Image

Digest

Size

257.4 MB

Last updated

over 8 years ago

docker pull sourcelair/stolos-auth