pauth

command module
v0.0.0-...-a00141d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 13 Imported by: 0

README

pauth (push-authentication)

pauth is a self-hosted POC push authentication mechanism for SSH inspired by Duo's push notification mechanism.

Installation

⚠️⚠️⚠️ This project is a quick POC, please read the code and the PAM documentation before using it! ⚠️⚠️⚠️

  1. Install pauth to /usr/local/bin/pauth
  2. Add the following to /etc/pam.d/sshd:
    auth      required  pam_permit.so
    auth      required  pam_exec.so /usr/local/bin/pauth -server wss://pauth.domain.tld/ws -uuid 00000000-0000-0000-0000-000000000000 pam
    

TODOs

  • Push notifications
  • Progressive Web App
  • Tests
  • WebSocket pings
  • Timeouts
  • Proper logging
  • Proper protocol for communication (JSON?, gob?)
  • Restricting access to the API
  • Public-key cryptography for linking "users" and "clients"
  • CLI tool for linking "clients" (perhaps a QR code?)
  • Support more than one client per server

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL