Say I connect to Amazon's EC2 service for multiple clients, where each client has their own ssh settings and secret keys etc.
Is there a way I could swap the settings for each client?
I'm on OS X.
Well, an easy way to do this, would be to put each key in ~/.ssh and then create a file in ~/.ssh called config
inside config you would then put lines like this for each host/key pair
then when connecting to each server it will use the proper usernames & keys
You could go further, by editing /etc/hosts and put shortened names for the IP addresses that your connecting to like such
then in your config file you can just put host1 instead of host1.example.com
This way your clients get the added benefit of separate security instead of sharing the same key across all clients.
Edit: You should also