Two-Factor Authentication with Telegram Bot for SSH / Shell Login
Chat @BotFather with /newbot
- Open your API:
https://api.telegram.org/bot[HTTP_API_KEY]/getUpdates - Chat your Telegram Bot
- Copy your
Chat ID
- Download
shell2FAsource - Change configuration
API KEY&Chat IDon "shell2FA" source - Move
shell2FAto/bin/(mv shell2FA /bin/) chmod +x /bin/shell2FA- Change shell in
/etc/passwd=> Example/bin/bashto/bin/shell2FA