SSH 服务器失败

SSH 服务器失败

因此,我在 ubuntu 16.10 上安装了 openSSH-server,sudo apt-get install openssh-server并且它工作正常,但是当我输入时,sudo service ssh start它说

Job for ssh.service failed because the control process exited with error code. see systemctl status ssh.service and journalctl -xe for details.

我输入了systemctl status ssh.service以下内容

`"ssh.service - OpenBSD Secure Shell Server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code)  since 2017-01-04 15:56:11 CET; 19s ago
Process: 2701 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=255)
Main PID: 2701 (code=exited, status=255)

Jan 04 15:56:11 PM-server systemd[1]: Starting OpenBSD Secure Shell server...
Jan 04 15:56:11 PM-server systemd[1]: ssh.service: Main process exited, code=exited, status=255/n/a
Jan 04 15:56:11 PM-server systemd[1]: Failed to start OpenBSD Secure Shell server.
Jan 04 15:56:11 PM-server systemd[1]: ssh.service: Unit entered failed state.
Jan 04 15:56:11 PM-server systemd[1]: ssh. service: Failed with result "exit-code""`

有什么办法可以解决这个问题吗?我在 Google 上搜索了几个小时,但没有找到任何有用的东西。提前谢谢了。

相关内容