DEV Community

Mohamed Sambo
Mohamed Sambo

Posted on

RDP to your EC2-Ubuntu

1- Create security group with outpund to everywhere and inbound on port 3350 and 3389 to your ip only

Image description

Image description

2- Create role of policy SsmManagedInstanceCore

Image description

3- Install ubuntu machine with public ip enabled in public subnet, without keypair
attach previous security group created at step 1 to the machine and role created in step 2 to the instance profile

Image description

Image description

4-Connect to machine using ssm session

Image description

then run the following commands

sudo su - 
apt-get update
apt install xrdp 
systemctl enable xrdp

###add-apt-repository tool that adds new software repositories to your system's APT (Advanced Package Tool) sources.
###ppa:gnome3-team/gnome3 a Personal Package Archive (unofficial Ubuntu repository). maintained by the GNOME 3 development team.

add-apt-repository ppa:gnome3-team/gnome3
apt-get install gnome-shell ubuntu-gnome-desktop
passwd ubuntu
Enter fullscreen mode Exit fullscreen mode

5-then connect using remote desktop application from your local machine to public ip of the ec2 machine

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

If you found this post useful, consider leaving a ❤️ or a nice comment!

Got it