Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ssh 直接登录资产,同时支持私钥认证 #434

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

VaalaCat
Copy link
Contributor

功能一:

读取 ~/.ssh/authorized_keys 中的内容,格式:

ssh-rsa xxxxx username
ssh-ed25519 xxxxx admin
ssh-ed25519 xxxxxxxx admin

comment是用户名,如果私钥匹配上就不再totp验证

功能二:

通过ssh指令直接选中资产,但只支持公钥认证时使用,格式

ssh username@assetname@next-termip -p port

例如

ssh admin@linux-01@192.168.1.1 -p 10000

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.

None yet

2 participants