可以通过ssh -v查看连接时详情
172-6-2-100:.ssh devzkn$ ssh -v iphone150
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/devzkn/.ssh/config
debug1: /Users/devzkn/.ssh/config line 11: Applying options for iphone150
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 172.6.2.131 [172.6.2.131] port 22.
debug1: Connection established.
debug1: identity file /Users/devzkn/.ssh/id_rsa_Theos125 type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/devzkn/.ssh/id_rsa_Theos125-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
解决方法:
vi /etc/hosts.allow
全部注射,追加:
sshd: ALL
重启ssh就ok了
service sshd restart
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。