我正在为我们的几个开发人员设置一个跳转服务器/堡垒主机,我想知道是否可以在堡垒上使用config
文件进行最终的服务器解析。
我们有
目前,我在developer .ssh/config
中有以下内容
Host bastion
HostName bastion-address.com
User developer
Host client
User client-user
HostName client-ip
ProxyJump bastion
但是,如果我能够在堡垒上设置客户机用户& ip,那就太棒了。这样,开发人员就不需要知道细节,只需要知道连接的Host
名称。
因此,可以想象开发人员的笔记本电脑上会出现这样的情况:
Host bastion
HostName bastion-address.com
User developer
Host client-server
HostName client-name
ProxyJump bastion
然后这个在堡垒上
Host client-name
User client-user
HostName client-ip
希望这是合理的。
发布于 2022-12-15 15:37:32
使用DNS。
使用相关in为bastion.example.net、client.example.net等创建AAAA记录。
删除ssh_config中的IP地址。
https://serverfault.com/questions/1117907
复制相似问题