Skip to content

修复ssh 秘钥+密码连接#112

Closed
putyy wants to merge 1 commit intocertimate-go:mainfrom
putyy:ssh_fix
Closed

修复ssh 秘钥+密码连接#112
putyy wants to merge 1 commit intocertimate-go:mainfrom
putyy:ssh_fix

Conversation

@putyy
Copy link
Copy Markdown

@putyy putyy commented Sep 27, 2024

No description provided.

Comment thread internal/deployer/ssh.go
signer, err := sshPkg.ParsePrivateKey([]byte(access.Key))
var signer sshPkg.Signer
var err error
if access.Password != "" {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

密码这么用,用户会产生疑惑:这个密码到底是用户的密码,还是私钥的密码?

  1. 可以在前端加个选项
  2. 或者在本地解析完再上传

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那Username到底是不是私钥对应的用户?
加个选项感觉有点多余,看项目里面本身是私钥优先 所以密码对应私钥也说得过去吧
要不就加一个Authentication type: Password、Keypair 由用户选择 类似idea上的功能,

@usual2970 usual2970 closed this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants