kingToolbox / kingToolbox/WindTerm

[bug] SSH two-factor authentication,"automatically entering the SSH password" does not take effect | SSH双因子认证时无法自动输入SSH密码

Open
#2,700 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I use `WindTerm 2.7-prerelease-3` on `windows 11 24H2`.

During `SSH two-factor authentication` (you need to manually enter the `Google verification code` and the SSH password to log in to the Linux system), the SSH password cannot be entered automatically. The configured keyboard interaction (for automatically entering the SSH password) does not take effect.

I installed Google Authenticator for SSH on `Ubuntu 22.04`.

```bash
root@racknerd:~# cat /etc/pam.d/sshd
# PAM configuration for the Secure Shell service

# add google authenticator
auth required pam_google_authenticator.so

... ...
```

In the SSH configuration, the configured `"onekey"` setting is not taking effect.

![Image](https://github.com/user-attachments/assets/4229bfe6-d755-412e-afe3-a9cfb166e52d)
![Image](https://github.com/user-attachments/assets/13dd136c-a31d-48f1-a3fa-059376efce4c)

![Image](https://github.com/user-attachments/assets/39f4e490-1b0c-401a-91aa-800b9bce2af4)
![Image](https://github.com/user-attachments/assets/692bae50-de39-42dd-af5a-9802f3b2d62e)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with WindTerm 2.7-prerelease-3 on Windows 11 against Ubuntu 22.04 using the shown /etc/pam.d/sshd Google Authenticator setup. Start by checking the SSH two-factor authentication flow and the configured "onekey" keyboard interaction; done means the SSH password is entered automatically after the verification code without manual entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
authentication, cli, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.