Linux远程桌面连接Problem Connecting问题解决
起因是上周五,我美滋滋的用着远程桌面结果突然被强制退出,然后就再也登不上了,尝试了重启服务和系统、卸载再安装xrdp和vnc、新建用户、新建文件内容为allowroot=1等等许多操作之后仍然报错。
主要的错误类型有两种:一种是提示problem connecting,一种是在problem connecting之前还有一句password failed.两种错误我都不能接受,首先我检查了3350和5910两个端口,都处于LISTEN状态,其次我的password肯定是没有错。查看了log也没有出现任何相关错误提示。
错误提示如下:
connecting to sesman ip 127.0.0.1 port 3350
sending login info to sesman
xrdp_mm_process_login_response: login successful for display
started connecting
connecting to 127.0.0.5910
tcp connected
security level is 2 (1 = none, 2 = standard)
password failed
error - problem connecting
于是今天决定一切推翻重来,主要是用了以下几个步骤,也不知道是哪个起了作用,就都先记录如下:
sudo apt-get update
sudo apt-get remove xrdp vnc4server
sudo apt-get install xinit
sudo apt-get install gdm
sudo apt-get install kubuntu-desktop
sudo apt-get install xrdp
sudo apt-get install vnc4server
echo xfce4-session >~/.xsession
vi /etc/xrdp/startwm.sh
//在. /etc/X11/Xsession 前一行插入xfce4-session
vi /etc/xrdp/sesman.ini
//在末尾增加两行
//param8=-SecurityTypes
//param9=None
sudo service xrdp restart
有用的语句:
ps -ef | grep vnc
sudo kill 进程
netstat -nltp
sudo adduser kkk
sudo userdel kkk
在问题解决过程中找到的相关建议:
https://blog.csdn.net/Blateyang/article/details/86297472
https://blog.csdn.net/u011816696/article/details/73350931
https://unix.stackexchange.com/questions/106974/windows-remote-desktop-login-failed-with-ubuntu-server-12-4
https://www.linuxquestions.org/questions/showthread.php?s=96fe980f2ffb4f61357fc3a6dd4dc9ce&p=5569746
http://www.dellts.cn/article/22.html