记录一下开启SSH KyLin

1: 配置SSH参数

 vim /etc/ssh/sshd_config

  

将#PasswordAuthentication no的注释去掉,并且将NO修改为YES //kali中默认是yes

将PermitRootLogin without-password修改为PermitRootLogin yes

2:启动SSH服务

命令为:/etc/init.d/ssh start

或者service ssh start

  

查看SSH服务状态是否正常运行,命令为:

/etc/init.d/ssh status

或者

service ssh status

3:设置系统自动启动SSH服务

update-rc.d ssh enable 

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

再次执行netstat -lnt命令则看到22端口成功启动

posted @ 2022-11-25 18:50  stweily  阅读(1238)  评论(0)    收藏  举报