You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in a scenario where I need SSH configuration for Ansible (which relies on IP address in our case), but I also will need to periodically log into these servers with a human readable name to make my life easy. No hostname is associated with the IP addresses.
I can successfully run ssh my_server however ssh 192.168.1.12 will fail. The only workaround I found is below, but I don't like needing to specify the same value/IP twice.
I'm in a scenario where I need SSH configuration for Ansible (which relies on IP address in our case), but I also will need to periodically log into these servers with a human readable name to make my life easy. No hostname is associated with the IP addresses.
I have this config:
I can successfully run
ssh my_server
howeverssh 192.168.1.12
will fail. The only workaround I found is below, but I don't like needing to specify the same value/IP twice.Is there a better way to write a config that allows SSH by the given name (
my_server
) and the hostname (192.168.1.12
)?The text was updated successfully, but these errors were encountered: