SSH 登陆不了 解决方法

问题描述:百度云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服务

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Back To Top

鄂ICP备17008157号-1