远程桌面连接失败

我的是centos7.0,“Desktop”、tigervnc-server、xrdp均已安装且启动,
通过windows的mstsc连接,界面是这样的:

界面.png


输入用户名密码后 报告出 vnc error:


vncerror.png


没能在网上找到解决这个error的办法。
(我参考这个阿里云的帮助文档 https://help.aliyun.com/knowledge_detail/7291333.html?spm=5176.ask2348.yqaskinfo1.4.In2FH6   确实在自己控制台图形化界面登录了,可我想用windows的远程桌面)
已邀请:

fish - Hadooper

远程桌面的这个配置配了什么?


1458697682443.png


 

fish - Hadooper

你的出错提示中表示机器只支持到24,把你的客户端配置改下吧。
别跟我一样,我的服务器端可能没你这问题。
连接成功了,但界面出不来又报错了。


6M{JAWDJAC7OSO1__H]`BLH.png


  /var/log/xrdp-sesman.log  如下:
  libscp initialized
starting sesman with pid 3094
listening...
A connection received from: 127.0.0.1 port 48952
scp thread on sck 8 started successfully
++ created session (access granted): username root, ip 123.127.218.84:61769 - socket: 8
starting Xvnc session...
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: 127.0.0.1:48952 - socket: 8
An established connection closed to endpoint: NULL:NULL - socket: 7
libscp initialized
starting sesman with pid 3094
listening...
A connection received from: 127.0.0.1 port 48952
scp thread on sck 8 started successfully
++ created session (access granted): username root, ip 123.127.218.84:61769 - socket: 8
starting Xvnc session...
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: 127.0.0.1:48952 - socket: 8
An established connection closed to endpoint: NULL:NULL - socket: 7
An established connection closed to endpoint: 127.0.0.1:48952 - socket: 8
env_set_user: error creating .vnc dir
Xvnc :10 -geometry 1920x1080 -depth 0 -rfbauth /root/.vnc/sesman_root_passwd -bs -nolisten tcp -localhost -dpi 96
X server for display 10 startup timeout
starting xrdp-sessvc - xpid=3136 - wmpid=3135
X server for display 10 startup timeout
another Xserver might already be active on display 10 - see log
aborting connection...
++ terminated session:  username root, display :10.0, session_pid 3134, ip 123.127.218.84:61769 - socket: 8
A connection received from: 127.0.0.1 port 48961
scp thread on sck 8 started successfully
An established connection closed to endpoint: 127.0.0.1:48961 - socket: 8 A connection received from: 127.0.0.1 port 53908
scp thread on sck 8 started successfully
An established connection closed to endpoint: 127.0.0.1:53908 - socket: 8
A connection received from: 127.0.0.1 port 54936
scp thread on sck 8 started successfully
++ created session (access granted): username root, ip 123.127.218.98:52954 - socket: 8
starting Xvnc session...
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: NULL:NULL - socket: 9
An established connection closed to endpoint: 127.0.0.1:54936 - socket: 8
An established connection closed to endpoint: NULL:NULL - socket: 7
An established connection closed to endpoint: 127.0.0.1:54936 - socket: 8
env_set_user: error creating .vnc dir
 

fish - Hadooper

你给的阿里云那个链接帮助里面,没有要装vnc,你自己装了tiger-vnc么?

fish - Hadooper

xrdp service是用root启动的吧?/root目录下有.vnc这个目录么?
 
实在不行,在windows端装个vncviewer,Linux端执行vncserver启动服务之后,windows上使用vncviewer进行连接。

fish - Hadooper

不用写什么配置文件。
 
如果用vncviewer:
  服务器: 执行:vncserver,启动服务
            vncpasswd,设置vnc密码 会输出"New'192.168.1.11:1 (root)'desktop is ip:1"的字符,其中的ip:1 就是客户端登陆的ip以及编号
  客户端: 1:下载vncviewer:http://www.realvnc.com/download/viewer 
        2:启动之后输入ip:1进行连接 
VNC可以连上,谢谢老师

要回复问题请先登录注册