Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

关于本地通过跳板机管理目标主机的问题,可以通过ProxyCommand参数实现,目前的config配置如下:

Host target*
  User root
  Port 22
  ProxyCommand ssh jump -qW %h:%p

目前在本地使用如下命令:

ssh target-a

总体来说,命令是可用的,代理是有效的,本地可以直接使用命令登录到目标主机了。
想请教的问题是 对于目标主机别名target-a的解析问题。初步测试,目前的配置下,target-a这个别名应该是在jump主机上(即跳板机)解析的。
有没有什么配置参数或方法可以让target-a别名在本地主机上解析呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
251 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...