Create a desktop session from Amazon Linux 2 to a windows machine
I need to create a desktop session (using commandline only) from an AL2 linux server to a windows machine. I am trying to use xfreerdp and rdesktop. I have installed them on my AL2 server. I have installed X11. When I run any desktop client (rdesktop) i get this error :
rdesktop IP_WINDOWS_MACHINE
Autoselected keyboard map en-us
No protocol specified
ERROR: Failed to open display: :0.0
I have tried setting up the the DESKTOP environment variable to :0
, :0.0
, localhost:0
, localhost:0.0
but nothing seems to work. Is there something I am missing in the setup? Is there a better way to do it?
I have also tried xhost +
which doesn't seem to work with the same error message.
What are you specifically trying to RDP for?
You can connect via Remote Desktop using Fleet Manager. https://docs.aws.amazon.com/systems-manager/latest/userguide/fleet-rdp.html
You can also use Amazon AppStream 2.0 Elastic fleets as bastion hosts https://aws.amazon.com/blogs/desktop-and-application-streaming/use-elastic-fleets-and-linux-for-inexpensive-secure-bastion-hosts-in-amazon-appstream-2-0/
Relevant questions
Windows Server RDP error
asked 2 months agoVirtualization Desktop
Accepted Answerasked 2 years agoAWS SSO Access for Linux?
asked 3 months agoUploading PC CD Games to my workspace
asked 5 months agoEC2 Windows Server integrated with Docker (Linux)?
asked a month agoPlacing a Bastion in a Private Isolated Subnet
asked 4 months agoCodeDeploy Environment Variables On Windows
asked 3 months agoCreate a desktop session from Amazon Linux 2 to a windows machine
asked 2 months agoKeep amazon workspace windows machine unlocked
asked 2 months agoMove dockerized Jenkins server to AWS
Accepted Answerasked 3 years ago