[GH-ISSUE #191] [Feature] 希望在添加ssh部署的时可以识别宿主机hosts文件中的解析内容 #118

Closed
opened 2026-03-03 00:31:36 +03:00 by kerem · 1 comment
Owner

Originally created by @ljwtorch on GitHub (Oct 14, 2024).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/191

功能描述
授权管理页面——SSH部署——服务器Host这个部分可以识别自定义的hosts名称;

例如我对宿主机/etc/hosts文件进行编辑:

10.1.1.110 test-ecs

然后在服务器host这一个框中输入test-ecs,目前会提示:
image

我希望"test-ecs"能正常输入,并解析为10.1.1.110这个ip

动机
可以通过配置宿主机的hosts文件,避免因后期服务器ip更改导致配置需要重新修改的情况

Originally created by @ljwtorch on GitHub (Oct 14, 2024). Original GitHub issue: https://github.com/certimate-go/certimate/issues/191 **功能描述** 授权管理页面——SSH部署——服务器Host这个部分可以识别自定义的hosts名称; 例如我对宿主机/etc/hosts文件进行编辑: ``` 10.1.1.110 test-ecs ``` 然后在服务器host这一个框中输入test-ecs,目前会提示: ![image](https://github.com/user-attachments/assets/6539518c-ba89-429e-9097-e964fb4640c2) 我希望"test-ecs"能正常输入,并解析为10.1.1.110这个ip **动机** 可以通过配置宿主机的hosts文件,避免因后期服务器ip更改导致配置需要重新修改的情况
kerem 2026-03-03 00:31:36 +03:00
Author
Owner

@usual2970 commented on GitHub (Oct 17, 2024):

这里可以填域名的,自定义的 hosts 改成域名形式就可以了

<!-- gh-comment-id:2419445240 --> @usual2970 commented on GitHub (Oct 17, 2024): 这里可以填域名的,自定义的 hosts 改成域名形式就可以了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#118
No description provided.