I'm trying to get ssh key forwarding to work so that I can ssh to a server and then use my local private key to then access another server.
All works fine if I do
ssh -A -i <identify file> email@example.com
However, if I move the identity file directive to the ssh config file:
Host server.com IdentityFile <identity file>
Then, I can still log in to the first server with
ssh -A firstname.lastname@example.org
(so I know that the IdentityFile directive is correct) but the key forwarding doesn't work any more. It's like the -A flag is ignored. Does anyone know how to get his working?