I frequently ssh into openstack instances. All of the instances are on a dedicated vlan and subnet (10.2.x.x). All of the instances have the same username (bob)
I connect like so:
or sometimes like this
ssh 10.2.x.x -l bob
Is it possible to configure my laptop to automatically use the name bob when I ssh into any vm on the 10.2.x.x subnet? I don't want to automatically use bob when sshing into a machine on any other subnet.
It looks like ssh config doesn't support wildcards. (Correct me if I am wrong). I'm thinking maybe an alias could do this, but I'm not sure what the syntax would be.