今天在远程登录服务器的时候发现存在报错信息:
Received disconnect from 8.8.8.8: Sorry, you are not allowed to conne
因为可以从别的服务器登陆8.8.8.8,因此首先登陆8.8.8.8,然后打开/etc/sshd_config
编辑AllowHosts,在后面添加上你刚才不能登录的那台服务器的IP,重启SSHD服务
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
再次尝试登陆~OK