kingToolbox / kingToolbox/WindTerm

OneKey 能否不设置username,把username设置在会话上?

Open
#2,177 3 comments 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

# 背景

我通常使用 Public Key Auth 登录服务器,我的本地 Private Key 是经过 passphrase 加密的,这导致我在每个会话首次登录的时候,都要输入 passphrase 。由于我会定期修改 Private Key 的 passphrase ,所以开启下次自动登录,也还是会定期全部失效,这个设计给我造成了很大困扰。

作为对照,Vandyke SecureCRT / SecureFX 工具的 Private Key passphrase 是会在当前进程中记住的,在任意一个会话中输入 passphrase 登录后,其余使用同一个 Private Key 的会话,均不需要再输入 passphrase ,直到完全退出 SecureCRT / SecureFX 。

WindTerm 的 OneKey 功能一定程度上解决了我的问题,我只要把 Private Key 和 passphrase 设置到 OneKey 之中,就可以避免反复的输入 passphrase 。修改 passphrase 的时候也只需要在 OneKey Manager 中更新一次就行。

# 问题

我有数十个SSH会话需要管理,其中部分会话,并不是使用 root 用户登录,这会导致我没办法使用同一个 OneKey 管理,我还得对每一个用户名单独建一个 OneKey ,这又增加了管理的复杂度。

因此,希望 OneKey 中可以不设置用户名,而是把用户名放到会话设置中,例如 host 设为 `ec2-user@ip` 这样使用 `ec2-user` 作为用户名,然后 `OneKey` 中的 password 或者 public key 作为密码。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the OneKey Manager and session settings described in the issue, then trace how the username is currently associated with a OneKey. Check how a host such as `ec2-user@ip` is parsed and how OneKey credentials are applied. Done means one OneKey can serve sessions with different usernames while each session retains its own username.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
authentication, desktop
Issue type
Feature
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.