Answers:
您可以在Host *组下配置选项。
Host *
user theboss
IdentityFile ~/.ssh/example
Host gandalf
Hostname shire.example.com
User bilbo
IdentityFile ~/.ssh/baggins
您可能有一个示例,其中包含所有选项/etc/ssh/ssh_config。
Private DNS在配置中使用实例的名称。即使IP地址发生变化,该设置也应保持稳定。