Linux实战笔记_ 如何远程访问Kali?

注:基于2018年安装的kali版本。

启动ssh服务

/etc/init.d/ssh start 或 service ssh start     #启动ssh服务
/etc/init.d/ssh status或者service ssh status   #查看ssh服务是否正常运行

修改/etc/ssh/sshd_config配置文件

#PermitRootLogin prohibit-password    修改成  PermitRootLogin yes
#PasswordAuthentication yes           修改成  PasswordAuthentication yes

配置永久有效

update-rc.d ssh enable   #系统自动启动SSH服务 开启
update-rc.d ssh disabled   #系统自动启动SSH服务 关闭

 

posted @ 2022-10-19 21:48  dustfree  阅读(71)  评论(0编辑  收藏  举报