Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to RDP on a EC2 instance

Tags:

amazon-ec2

I am trying to RDP into an EC2 instance from my windows 7 machine however always gets

Remote Desktop Can't Connect to remote Comupter for one of these resons

1.) Remote Desktop to server is not enabled

2.) The remote Computer is turnnned off

3.) The remote computer is not avilable on the network.

I am able to RDP other EC2 instance. also a as work-around I am able to RDP into the subjected instance from other EC2 machine but not from my windows 7 machine and also other machine on the network.

Checked the security GROUP of both RDP-working and RDP-non-working ec2 instance and they are configured identical (port 3389 enabled).

Any suggestion please!!!!

like image 823
Ruchir Bharadwaj Avatar asked Apr 04 '13 08:04

Ruchir Bharadwaj


People also ask

How do I enable RDP on AWS EC2 instance?

To allow RDP accessOpen the Amazon EC2 console , set it to the stack's region, and choose Security Groups from the navigation pane. Choose AWS-OpsWorks-RDP-Server, choose the Inbound tab, and choose Edit. Choose Add Rule and specify the following settings: Type – RDP.

Why am I unable to connect to a port on an EC2 Windows?

The following issues can prevent a connection to an EC2 Windows instance on a specific port: The service that uses the port isn't running on the instance. Windows Firewall is blocking traffic to the port. A security group is blocking traffic.

How do I fix NLA error in AWS?

NLA errors often occur when the instance has lost connectivity to a domain controller because domain credentials aren't authenticated. To fix this issue, you can use the AWS Systems Manager AWSSupport-TroubleshootRDP automation document. Or, you can deactivate NLA on the instance.


2 Answers

  1. In the AWS console, edit your security group or create a new one and add a new Inbound rule: "All Traffic" and Custom IP = {Your IP}

  2. Go to the instance you want to connect to and press Connect and download the Remote Desktop File or open it from the web browser.

  3. In the same screen as in point 2 (Connect to your instance), click on Get Password and uploaded your .pem file directory that you should have downloaded earlier and decrypt my password

  4. Sign into the RDP using Administrator for the username and that password.

It's important to note that your default security group in AWS does not allow RDPing, which is why step 1 is important here.

like image 167
jon bosker Avatar answered Sep 22 '22 15:09

jon bosker


I hope you have already tried and tested all the above suggestions like-

  1. Verifying whether your instance have the RDP protocol step correctly or not.
  2. Added a new inbound rule i.e. a Custom TCP port(i.e. 3389) in your security group.

If you still have the issue, the one thing you can try is to check you xrdp.ini file (for ubuntu it is located at /etc/xrdp/xrdp.ini) should contain the port field as port=ask-1 if it contains any other value( for example port=askaskaskask-1 that means you had run the setup commands more than once) change it to port=ask-1.

like image 24
Kuldeep Avatar answered Sep 19 '22 15:09

Kuldeep