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