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
¶
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
|
|
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). |
Click to show internal directories.
Click to hide internal directories.