I have this config in
Host *.myhost.com User awwuser IdentityFile my-keys/myhost/id_dsa
The thing is, I have 2 different private keys for different hosts also I have 2 different users for that hosts, so I want to not to write them down each time through ssh options. As I found out, I can create a config file, which will automatically set username and private key to use.
As I understand from the documentation, I did everything correct.
But this config doesn't seem to work at all.
When I do
ssh subdomain.myhost.com it tries to connect to it using current user name, not the one specified in config. When I'm specifying username through ssh options, it doesn't see correct identity file. So my config doesn't seem working at all.
P.S. I'm using open ssh 6.0