安装环境Centos6.5  默认yum源

首先查询是否有与RDP相关的软件
yum search rdp
查到了一个freerdp

安装
yum install freerdp

测试
xfreerdp -f -u administrator -p 123 192.168.1.105


也可以先不输入密码,但-p参数必须加在最后:xfreerdp -f -u administartor 192.168.105 -p

参数说明

-f     以全屏模式打开;全屏之后很麻烦,必须断开连接才能返回Linux,如果有谁知道怎么最小化返回,请告知,谢谢!
-u    以**用户登录
-p    密码
-d    登录**域
-o    启用音频,但不带到本地,即音频,在远端设备中启用;其实我希望把语音带到本地来的,但默认是不带的,不知道有没有这样一个参数,看了帮助文档也没有,可能Enlish太菜了吧!望知道的朋友告知,谢谢!

如果提示
connected to 192.168.1.105:3389
Password:
SSL_read: Failure in SSL library (protocol error?)
SSL_read: error:14094419:SSL routines:SSL3_READ_BYTES:tlsv1 alert access denied
credssp_recv() error: -1
Authentication failure, check credentials.
If credentials are valid, the NTLMSSP implementation may be to blame.

则是连接是的命令顺序有误,我才开始使用的是 xfree 192.168.1.105 -u administrator -p 123就会提示这个错误


如果提示
connected to 192.168.1.105:3389
Password:
The host key for 192.168.1.105 has changed
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the host key sent by the remote host is
f3:30:34:ee:92:eb:1e:97:80:cd:7f:18:ca:92:ac:97:ae:4a:bb
Please contact your system administrator.
Add correct host key in ~/.freerdp/known_hosts to get rid of this message.
Host key for 192.168.1.105 has changed and you have requested strict checking.
Host key verification failed.
SSL_write: Failure in SSL library (protocol error?)
Authentication failure, check credentials.
If credentials are valid, the NTLMSSP implementation may be to blame.

那么就是你的远端电脑做过变更,例如改变了计算机名,加入或退出域等
删除/known_hosts文件中对应ip的信息即可
vim ~/.freerdp/known_hosts
删除192.168.1.105对应的这一行。