

arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore Here is a CloudFormation snippet to create an instance profile and a role that allows the EC2 instance to leverage SSM: SSMProfile:ĭescription: Basic SSM permissions for EC2 An SSM agent installed and running on the EC2 instance.A Role that can assume permissions for SSM tasks.An Instance profile we can attach to EC2 instances.In order to leverage SSM, we need a few things:
TUNEL MANAGER SSH FULL
The full CloudFormation template for deploying a SystemsManager enabled instance with a sample automation document can be found on my GitHub.


The templates shown in this article don't depend on other templates in my Advanced AWS security architecture series, but you might be interested in reading the first article before taking on this one. In this article, we'll be walking through an initial SSM setup, testing SSH to an EC2 instance along with a tunnel to RDS, and then configuring automated patching and security checks for that instance.

That's why I come up with custom Powershell script, easy configurable, changeable, small, but works. I tried many solutions like SSH tunnel managers, but all were inconvinient for me: too many configuration screens, sometimes buggy (one time SSH tunnel manager purged all! settings I had! So I had to restore settings for all 30 tunnels).
TUNEL MANAGER SSH HOW TO
I did find this question: How to reliably keep an SSH tunnel open?, but that's using Linux as the SSH client, and I'm using Windows. I'm planning on making a dedicated user with no privileges and not allowed to interactively log in, and use that.) (Yes, I am aware of the hazards of automatically logging in to SSH. The two tunnels are one local tunnel, and one remote tunnel. The data I'm sending across the two tunnels is VNC connections, so I often won't be at the machine to clear errors and enter passwords. What I'd like to do is have an application that can set up the two SSH tunnels, and can automatically reconnect, without needing to manually do anything, including enter a password. This works well, except when the SSH connection drops: PuTTY displays an error message, and I need to manually close the error and reconnect to the server.
TUNEL MANAGER SSH WINDOWS
I'm trying to set up a Windows computer to always have two SSH tunnels to my Linux server.Ĭurrently, I'm using PuTTY to open the two SSH tunnels: I log in to the server in PuTTY, leave it minimized, and never touch it.
