我看到了许多与此类似但错误不同的帖子,我发现这些答案只是让我走进死胡同。XRDP 曾经在这台机器上工作过……在升级到 18.04.1 之前。我不认为“较新版本”的 xrdp 是解决方案,因为这似乎是最新版本。尝试启动 xrdp 失败,并出现以下错误:
Job for xrdp.service failed because the control process exited with error code.
See "systemctl status xrdp.service" and "journalctl -xe" for details.
root@play:/home/richard# systemctl status xrdp.service
? xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: en
Active: failed (Result: exit-code) since Tue 2018-08-21 18:20:28 EDT; 10s ag
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 5542 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=1/F
Process: 5534 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, st
Aug 21 18:20:28 play systemd[1]: Starting xrdp daemon...
Aug 21 18:20:28 play systemd[1]: xrdp.service: Control process exited, code=exi
Aug 21 18:20:28 play systemd[1]: xrdp.service: Failed with result 'exit-code'.
Aug 21 18:20:28 play systemd[1]: Failed to start xrdp daemon.
journalctl 命令...日志太长,几乎毫无用处。我不知道它在哪里找到对似乎已列在那里的用户的引用...底线错误似乎是身份验证失败,这...对我来说很奇怪,因为...嘿,这是一个由服务器在服务器上运行的进程...此时究竟会登录到什么...只是为了启动该服务。但除了我自己对此的无知之外,我不知道在哪里添加/更改所述用户...查看诸如 PAM 身份验证列表之类的内容,我看到这里的日志中没有提到任何用户,所以...在那里更改任何东西都可能不会有任何区别。
Aug 21 18:43:35 play sshd[6750]: Received disconnect from 116.31.116.34 port 51191:11: [preauth]
Aug 21 18:43:35 play sshd[6750]: Disconnected from authenticating user root 116.31.116.34 port 51191 [preauth]
Aug 21 18:43:35 play sshd[6750]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.34 user=root
Aug 21 18:43:35 play sshd[6752]: Received disconnect from 116.31.116.34 port 46881:11: [preauth]
Aug 21 18:43:35 play sshd[6752]: Disconnected from authenticating user root 116.31.116.34 port 46881 [preauth]
Aug 21 18:43:35 play sshd[6752]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.34 user=root
Aug 21 18:44:00 play sshd[6768]: rexec line 16: Deprecated option UsePrivilegeSeparation
Aug 21 18:44:00 play sshd[6768]: rexec line 19: Deprecated option KeyRegenerationInterval
Aug 21 18:44:00 play sshd[6768]: rexec line 20: Deprecated option ServerKeyBits
Aug 21 18:44:00 play sshd[6768]: rexec line 31: Deprecated option RSAAuthentication
Aug 21 18:44:00 play sshd[6768]: rexec line 38: Deprecated option RhostsRSAAuthentication
Aug 21 18:44:08 play sshd[6772]: rexec line 16: Deprecated option UsePrivilegeSeparation
Aug 21 18:44:08 play sshd[6772]: rexec line 19: Deprecated option KeyRegenerationInterval
Aug 21 18:44:08 play sshd[6772]: rexec line 20: Deprecated option ServerKeyBits
Aug 21 18:44:08 play sshd[6772]: rexec line 31: Deprecated option RSAAuthentication
Aug 21 18:44:08 play sshd[6772]: rexec line 38: Deprecated option RhostsRSAAuthentication
Aug 21 18:44:10 play sshd[6772]: reprocess config line 31: Deprecated option RSAAuthentication
Aug 21 18:44:10 play sshd[6772]: reprocess config line 38: Deprecated option RhostsRSAAuthentication
Aug 21 18:44:10 play sshd[6772]: Invalid user luser from 203.198.158.147 port 59930
Aug 21 18:44:10 play sshd[6772]: pam_unix(sshd:auth): check pass; user unknown
Aug 21 18:44:10 play sshd[6772]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=203.198.158.147
Aug 21 18:44:12 play sshd[6772]: Failed password for invalid user luser from 203.198.158.147 port 59930 ssh2
Aug 21 18:44:12 play sshd[6772]: Connection closed by invalid user luser 203.198.158.147 port 59930 [preauth]
无论如何,在更新过程中,提到了几个可能较新的文件,可以用较新的版本替换……但之前的版本自安装以来已被某些脚本(或我)修改,因此默认操作是保留前一个。我猜用较新的版本替换其中一个可能会解决这个问题,但我不知道从哪里开始寻找它是什么。无论如何,如果有人遇到这个问题或类似的问题,他们可以指导我找到纠正方向,我将不胜感激。
答案1
主持人说他们:“清除了 xrdp 并重新安装”。这样做之后,xrdp 工作正常。