Releases: carligithub400/literate-auth
Releases · carligithub400/literate-auth
Version 1.0.1
Full Changelog: v1.0.0...v1.0.1
Version 1.0.0
This Bash script establishes a two-factor authentication (2FA) layer for Linux server SSH sessions. It follows these steps:
- Generates a random 6-digit challenge and saves it to a file (
./code
). - Sends the challenge code to a Telegram bot using the specified token and chat ID.
- Prompts the user to enter the challenge response without displaying it on the screen.
- Checks if the entered response matches the generated challenge.
- If the response is correct, grants access to
/bin/bash
; otherwise, terminates the connection.
Caution: For testing purposes only. Do not use in production or for critical tasks. The script utilizes Telegram for code transmission and a secure prompt for user input. After the challenge, the script either allows the user to proceed to the shell or terminates the connection if the response is incorrect. Keep in mind the inherent risks associated with 2FA implementations and use responsibly in controlled testing environments. The code leverages standard Linux commands, making it easily comprehensible for those familiar with Bash scripting and server administration.