Friday, August 10, 2018

How to Connect Windows machine with RDP from CentOS 7 / RHEL 7 Console

Install freerdp on CentOS 7 / RHEL 7

Let’s first install Desktop environment related packages using the beneath yum command. If we don’t install these packages then xfreerdp command will not work from command line
[root@dkengine2 ~]# yum install "@X Window System" xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils –y
[root@dkengine2 ~]# yum install freerdp -y
Once the freerdp is installed successfully then we have ‘xfreerdp’ command through we can connect to windows machine.  Disconnect ssh session of your server and connect it again with ‘-X’ option. Example is shown below
ssh root@192.168.1.60 -X

Connect to Windows Machine with RDP from CentOS 7 / RHEL 7 Console or terminal

Run the below ‘xfreerdp’ command, replace the user name and ip address and screen resolution as per your setup.
[root@dkengine2 ~]# xfreerdp -g 800x600 -u administrator 192.168.1.60

No comments:

Post a Comment