Repository navigation
直接输出可复制的完整连接信息,不再让用户二次拼装 - #3
Merged
Merged
Conversation
- 新增 print_connection_info:可复制的 Host 配置块 + 免配置一条命令直连,用户名默认安装用户 - 元数据记录 INSTALL_USER(SUDO_USER 或 root),旧配置自动回退 root - client-config 支持第二个可选参数指定用户名,默认填充而非占位符 - 测试 69 -> 73 项
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
真实场景反馈:部署完只给域名+占位符命令,还得自己跑 client-config 拼用户名才能连,对小白和 AI agent 都不友好。
改动
~/.ssh/config的完整 Host 块(User 行已填好)ssh -o ProxyCommand='cloudflared access ssh --hostname %h' user@domainINSTALL_USER(sudo 发起者或 root),连接信息默认用它;旧配置无此字段自动回退 rootclient-config [域名] [用户名]:默认填充真实用户名,不再是<你的 Linux 用户名>占位符验证
本地 73/73 测试通过(新增 4 项断言),bash -n 通过。