3 ms·
Wait, you keep private SSH keys on bastion hosts? It's much better practice to use the bastion as a proxy to the other hosts. This is easily achieved using the
by cassianoleal 9y ago
Wait, you keep private SSH keys on bastion hosts?
It's much better practice to use the bastion as a proxy to the other hosts. This is easily achieved using the ProxyCommand option of OpenSSH.
No agent forwarding, no secrets kept in random hosts.
- scrollaway 9y agoDo you know a good guide with standard practices for setting up and securing bastion hosts (preferably on aws)?
- toomuchtodo 9y agoIf you don’t require interactive sessions, consider using AWS SSM run command [1] instead. You install the agent on the instances, with commands sent from the client through the AWS control plane (with IAM and SSM documents for access control and CloudTrail logs of all commands issued). I’m currently deploying it in an enterprise for ~5k users, and it works surprisingly well for providing the ability to run arbitrary commands on instances without ssh access. [1] https://docs.aws.amazon.com/systems-manager/latest/userguide/walkthrough-cli.html https://docs.aws.amazon.com/systems-manager/latest/userguide...
- JoachimSchipper 9y agoNo, keeping SSH keys on bastion hosts was the silliest reasonable thing I could think of.