I manage EC2 instances (virtual machines) across a number of Amazon accounts. The machines don't necessarily have domain names; usually I connect to them by IP address.Each AWS account has its own bastion server that I connect through. It's annoying, because when I connect to a machine I have to specify the settings for the SSH tunnel on the command line. If the machines had domain names, I would just configure the tunnel in my ~/.ssh/config file. Instead, I have to do this - and the proxy IP address changes depending on which AWS account I'm working on:ssh -o ProxyCommand=ssh -W %h:%p ubuntu@1.2.3.4 ubuntu@172.17.1.2Is there a nice way to configure SSH so I don't need to specify the proxy command (and maybe the user name)? I'm happy to use another solution such as a bash alias if that makes more sense.
Saved proxy settings for SSH with various AWS accounts
ssh;proxy;amazon ec2