aws-quickstart / quickstart-microsoft-rdgateway

AWS Quick Start Team
Apache License 2.0
48 stars 87 forks source link

Remote Desktop can't connect to the remote computer / Event 301 #12

Open daurrutia opened 6 years ago

daurrutia commented 6 years ago

Deployed "RD Gateway into a new VPC"

Walked through Post-Deployment Tasks

Attempting to connect to a Windows Server 2016 instance (administrator, with aws generated password) in private subnet 1A.

Receive the following error: Remote Desktop can't connect to the remote computer "10.XXX.XXX.XXX" for one of these reasons:

1) Your user account is not listed in the RD Gateway's permission list 2) You might have specified the remote computer in NetBIOS format (for example, computer1), but the RD Gateway is expecting an FQDN or IP address format (for example, computer1.fabrikam.com or 157.60.0.1).

TS event log on RDGW displays Event 301 (error 23002) at each attempt, detailing a resource authorization error.

Screenshots attached. remotedesktopconnection-2018-07-06

event301-2018-07-06

Anyone come across this or can provide guidance?

szmulder commented 5 years ago

I had same problem with StackAdmin account, but when I use the administrator (with aws generated password) account to authenticate to RDGW then works fine.

daurrutia commented 5 years ago

Verified @szmulder's method using the default Administrator account is a workaround.

daurrutia commented 5 years ago

An additional workaround is to:

ghost commented 5 years ago

thanks @daurrutia - I had this and not only did I need to add to the RDGW RAP, but also to the CAP.

tbugfinder commented 4 years ago

I run into this issue also. Maybe the userdata scripts could do some work work and create additional users/groups.