otpd

command module
v0.0.0-...-15a51b0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 2 Imported by: 0

README

OTP(One-time Password) service

OTP service, providing the following functions:

  • Get user binding QR code
  • Get current verification code
  • Check if the verification code is valid

Use OTP(One-time Password) and OPA(Open Policy Agent) for SSH access control

cd docker

## start server
docker-compose up -d

## Generate a OTP key for root
http http://localhost:18181/key?name=root

## Get current OTP passcode for root
http http://localhost:18181/passcode?name=root

## Use the OTP passcode to login the server
ssh -p 10022 -i ./keys/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
pkg
otp
pam
Package axiospam contains functionality to Authenticate a User with Pluggable Authentication Modules (PAM).
Package axiospam contains functionality to Authenticate a User with Pluggable Authentication Modules (PAM).

Jump to

Keyboard shortcuts

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