Skip to content

RDP to EC2 using SSM and CloudShell?

0

It looks like I can't, and I guess it would make sense, but just to confirm...

Can I use CloudShell instead of AWS CLI to set up port forwarding? I'm using SSM to create a user, add it to the Administrators group, and then running this on AWS CLI:

aws ssm start-session --target <INSTANCE ID> --document-name "AWS-StartPortForwardingSession" --parameters "portNumber=3389,localPortNumber=9000" --region us-east-1

Then RDP using the user credentials. I'd rather use CloudShell, but whenever I try to RDP it can't connect.

Thank You

1 Answer
1
Accepted Answer

Hello.

You cannot use CloudShell to perform port forwarding.
You need to run the command on the terminal that makes the connection (such as your local PC).
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.