2016-02-03 75 views
0

安裝owncloud並運行MySQL安全設置後,我無法再連接到服務器。我收到以下錯誤:CentOS 6連接由遠程主機關閉

MacBook-Pro:~ username$ ssh -i ~/.ssh/authorized_keys2 [email protected] -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 

發生了什麼事,我該如何解決?我仍然有一個活動的連接到服務器

+0

檢查日誌。它看起來像tcp_wrappers('/ etc/hosts.allow','/ etc/hosts.deny')問題。 – Jakuje

+0

grep sshd /etc/hosts.allow返回任何和相同的拒絕 –

+0

不要grep那裏。有幾行。發佈他們到編輯的問題。也從你的機器上發佈最近的日誌。 – Jakuje

回答

0

檢查/ var/log/messages文件並查看錯誤消息是什麼。在許多情況下,它只是權限配置錯誤。

相關問題