Different configurations for ssh client depending on ip address or hostname
- by John Smith Optional
I have this in my ~/.ssh/config directory:
Host 12.34.56.78
IdentityFile ~/.ssh/my_identity_file
When I ssh to 12.34.56.78, everything works fine. I'm asked for the passphrase for "my_identity_file" and I can connect to the server.
However, sometimes I'd also like to ssh to another server.
But whatever the server, if I do:
ssh…