Unable to type in AWS Serial console

0

I have access to the Serial Console for my EC2 instance, however once the after loading i am unable to enter commands in the screen. Not sure if the IAM user is missing any more access permissions. Currently below is the permission provided.

"Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ec2:GetSerialConsoleAccessStatus", "ec2:EnableSerialConsoleAccess", "ec2:DisableSerialConsoleAccess" ], "Resource": "*" },

{ "Sid": "AllowinstanceBasedSerialConsoleAccess",
"Effect": "Allow", "Action": [ "<instance info>" ], "Resource": "<instance info" } ] }

Additionally my main objective is to have access to the serial console and then "DISABLE the RDP" services in the Instance. Right now we have no other way to access the server, thus I am hoping that there is a way to REMOVE or DISABLE the RDP in my instance using the Serial Console. Is this possible? If yes, can someone provide the script that needs to be executed ? If Not, can someone suggest an alternative way ? FYI ..It's a Windows Server

1 Resposta
0

Hello.

As far as I can see from the document below, there seems to be no problem with the IAM policy.
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/configure-access-to-serial-console.html

Why not try connecting to PowerShell via Systems Manager Session Manager instead of a serial console connection?
You can connect by setting the policy "AmazonSSMManagedInstanceCore" in the EC2 IAM role.
For EC2 in a private subnet, you need to set up a NAT Gateway or VPC endpoint.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-prerequisites.html

profile picture
ESPECIALISTA
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas