灵易深论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 240|回复: 0

Kali2无法使用root登录ssh解决办法

[复制链接]

70

主题

9

回帖

176

积分

管理员

积分
176
发表于 2019-9-10 08:33:23 | 显示全部楼层 |阅读模式


修改 /etc/ssh/sshd_config文件,注意,安装了openssh才会有这个文件,如果文件不存在请检查是否安装了openssh。
vim /etc/ssh/sshd_config11

找到
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

改成

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10





然后输入命令
/etc/init.d/ssh restart 11
重启ssh服务即可。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|灵易深论坛 ( 沪ICP备2020036158号-2 )

GMT+8, 2025-6-22 00:23 , Processed in 0.012926 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表