【发布时间】:2016-05-13 02:02:50
【问题描述】:
安装 owncloud 并运行 MySQL 安全设置后,我无法再连接到服务器。我收到以下错误:
MacBook-Pro:~ username$ ssh -i ~/.ssh/authorized_keys2 root@x.x.x.x -v
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /Users/username/.ssh/authorized_keys2 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/username/.ssh/authorized_keys2-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: Connection closed by remote host
发生了什么,我该如何解决?我仍然有与服务器的活动连接
【问题讨论】:
-
检查日志。看起来像 tcp_wrappers (
/etc/hosts.allow,/etc/hosts.deny) 问题。 -
grep sshd /etc/hosts.allow 不返回任何内容,拒绝返回相同
-
不要在那里grep。行数很少。将它们发布到已编辑的问题。同时发布您机器上的最新日志。