CentOS 6连接由远程主机关闭

时间:2016-02-03 18:05:29

标签: ssh centos6

安装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

什么事情发生了,我该如何解决?我仍然有一个活跃的服务器连接

1 个答案:

答案 0 :(得分:0)

检查/ var / log / messages文件并查看错误消息。在许多情况下,它只是对权限的错误配置。