问题描述:
服务登录不了 VNC可以登录
解决办法:
vim /etc/hosts.allow 打开文件
查看第10行有没有 sshd: ALL
如果没有就加上
1 # /etc/hosts.allow: list of hosts that are allowed to access the system.
2 # See the manual pages hosts_access(5) and hosts_options(5).
3 #
4 # Example: ALL: LOCAL @some_netgroup
5 # ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
6 #
7 # If you're going to protect the portmapper use the name "rpcbind" for the
8 # daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
9 #
10 sshd: ALL
:wq (vim 保存文件)
service ssh restart 重启ssh服务
结果: