tabby icon indicating copy to clipboard operation
tabby copied to clipboard

Add totp support in keyboard-interactive authentication mode

Open NightWatcher314 opened this issue 6 months ago • 3 comments

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

image

auto-fill

image

NightWatcher314 avatar Jun 07 '25 13:06 NightWatcher314

Sure, I will fix these problems.

NightWatcher314 avatar Oct 06 '25 19:10 NightWatcher314

老铁,我急需这个功能

bigbeef avatar Nov 30 '25 10:11 bigbeef

老铁,我急需这个功能 好的,我近期再看看怎么加上去。因为 tabby 当时好一段时间没有合我的 pr,所以我后来换到了 kitty,给 kitty 增加了 totp 的功能。

NightWatcher314 avatar Dec 01 '25 13:12 NightWatcher314