tabby
tabby copied to clipboard
Add totp support in keyboard-interactive authentication mode
Summary
Adds Time-based One-time Password (TOTP) support to SSH keyboard-interactive authentication with automatic code generation and smart prompt detection.
Key Features
- TOTP Integration: Store Base32 TOTP secrets in SSH profiles
- Auto-fill: Automatically generates and inputs TOTP codes during authentication
- Smart Detection: Recognizes TOTP prompts (verification code, authenticator, etc.)
- Real-time UI: Live TOTP display with 30-second countdown timer
- Seamless Experience: Works alongside existing password authentication
Technical Changes
- Added TOTPService with RFC 6238 compliant TOTP generation
- Enhanced KeyboardInteractiveAuthComponent with TOTP lifecycle management
- Added TOTP secret configuration in SSH profile settings
- Implemented automatic prompt detection and code refresh
Preview
config
auto-fill
Sure, I will fix these problems.
老铁,我急需这个功能
老铁,我急需这个功能 好的,我近期再看看怎么加上去。因为 tabby 当时好一段时间没有合我的 pr,所以我后来换到了 kitty,给 kitty 增加了 totp 的功能。