Linux rdesktop remote Connection to Windows systems (with the use of Xshell tools and problems encountered)

Source: Internet
Author: User
Tags ssh server windows remote desktop rdesktop

In Windows systems, Microsoft Windows provides a remote Desktop system, which has a default port of 3389 (which can be modified manually), allowing users to log on remotely for system administration or to run various applications as terminal servers. To connect to Windows Remote Desktop, you need to install the appropriate software (tsclient) on the Windows client. If you are a Windows server administrator, you must have used this tool, because Remote Desktop can greatly facilitate the remote maintenance of the server by the system administrator.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/5B/wKioL1mRB9PAKn3vAAC8Ih2V5Ag057.png "title=" 1.png "alt=" Wkiol1mrb9pakn3vaac8ih2v5ag057.png "/>

In a Linux system, you can also connect to Windows Remote Desktop via a free tool rdesktop, which is used with the Xshell tool.

First Use Xshell remote (SSH) on the Linux system, enter the command: Rdesktop 192.168.25.159 Enter

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/5C/wKioL1mRCY_iZY0BAAAxImke1P8464.png "style=" float : none; "title=" 3.png "alt=" Wkiol1mrcy_izy0baaaximke1p8464.png "/>

The Remote Desktop program will pop up to join the remote Windows computer ().

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9E/6D/wKiom1mRCY-yC98XAAB2WO8vX8Y910.png "style=" float : none; "title=" 4.png "alt=" Wkiom1mrcy-yc98xaab2wo8vx8y910.png "/>

The following describes the specific installation implementation process: (System: centos6.6)

SSH on this server first:

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9E/6D/wKiom1mRC0by0FS7AAATC3xfxGg598.png "title=" 2.png "alt=" Wkiom1mrc0by0fs7aaatc3xfxgg598.png "/>

Note:warning! The remote SSH server rejected X11 forwarding request. In Xshell if you log in to Linux with this warning, the system settings do not support Rdesktop even if the installation is not available, We'll mention it in a minute.

Let's check if the Rdesktop tool is installed: Rpm-qa rdesktop

No query, indicates that the Rdesktop tool is not installed:

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/6D/wKiom1mRDFSA80sXAAAW-6Kl0B4353.png "title=" 5.png "alt=" Wkiom1mrdfsa80sxaaaw-6kl0b4353.png "/>

Then we first install: Yum install Rdesktop


650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9E/5C/wKioL1mRDO6B2vNYAABulyXTePc637.png "title=" 6.png "Style=" float:left; "alt=" Wkiol1mrdo6b2vnyaabulyxtepc637.png "/>












650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/6E/wKiom1mRDdbAJ-KMAABXmMA1cLo270.png "title=" 7.png "alt=" Wkiom1mrddbaj-kmaabxmma1clo270.png "/>

After installation, the system can use the Rdesktop command, rdesktop-h can view the use of Help and command related parameter description.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9E/5C/wKioL1mRDovTiXnDAABGWKuaNVM770.png "style=" float : none; "title=" 8.png "alt=" Wkiol1mrdovtixndaabgwkuanvm770.png "/>

After the installation is complete we try to use, error, cannot remote.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9E/6E/wKiom1mRDozS2hjlAAAQZrLL57c395.png "style=" float : none; "title=" 9.png "alt=" Wkiom1mrdozs2hjlaaaqzrll57c395.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9E/97/wKioL1mT2xPS3YeSAAASq0A24xU613.png "title=" 10. PNG "alt=" Wkiol1mt2xps3yesaaasq0a24xu613.png "/>

The test found that Rdesktop needed to rely on xorg-x11-xauth.x86_64, which was not installed in the system.

Yum Install xorg-x11-xauth.x86_64

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/98/wKioL1mT3DDSm23GAAAw67FhiWs247.png "title=" 11. PNG "alt=" Wkiol1mt3ddsm23gaaaw67fhiws247.png "/>

The installation was successful, then we exited and re-joined via Xshell:

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/98/wKioL1mT3L3ALmayAAAvTCuVcfc123.png "title=" 12. PNG "alt=" Wkiol1mt3l3almayaaavtcuvcfc123.png "/>


We found that when we joined the server through Xshell, the prompts changed and the following prompt appeared:

Last login:wed-17:43:29 from 192.168.25.159
/usr/bin/xauth:file/root/. Xauthority does not exist

This is a hint when Xshell joins. xauthority This file does not exist and appears. The first successful landing will appear this prompt, exit re-login will not be prompted, because just when the log on his detection file does not exist will automatically create some files (if we just xauth installed successfully)


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9E/98/wKioL1mT3_7iyiA5AAAbNxeHinM804.png "title=" 13. PNG "alt=" Wkiol1mt3_7iyia5aaabnxehinm804.png "/>

Exit re-enter has no hint, and then try the rdesktop command function can be used normally.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9E/99/wKioL1mT4KaRw2hXAADHjm1RVlA697.png "title=" 14. PNG "alt=" Wkiol1mt4karw2hxaadhjm1rvla697.png "/>

The following are common parameters for the rdesktop command:-U and-p//Specify user name and password. -d//hides the top bar of the remote Desktop. -f//default full screen, need to use Ctrl-alt-enter key combination for full screen/window mode switch. -G 1024x768 Specifies the resolution Workarea automatically detects the current Linux desktop size all fill-a//16 indicates the use of the-bit color. -R clipboard:primaryclipboard//local and Remote Desktop sharing clipboard. -R disk:mydisk=/home/deepin//local Linux directory mounted on remote windows, name Mydisk. -R Sound:[local|off|remote]//voice redirection. -R sound:local//Bring the sound of the remote host to the machine. -X Lan|modem//If the bandwidth is wide, select LAN to load the Remote desktop background, not by default.

Personally, the use of the Rdesktop command with the Xshell tool makes it easier and more efficient to manage all other servers (Windows+linux+unix) When the board is Linux.

This article comes from "on the road ... Recover lost Memory "blog, declined reprint!"

Linux rdesktop remote Connection to Windows systems (with the use of Xshell tools and problems encountered)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.