首页 > 其他分享 >记录一下开启SSH KyLin

记录一下开启SSH KyLin

时间:2022-11-25 19:01:27浏览次数:42  
标签:KyLin 启动 开启 etc PermitRootLogin SSH rc ssh

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端口成功启动

标签:KyLin,启动,开启,etc,PermitRootLogin,SSH,rc,ssh
From: https://www.cnblogs.com/stweily/p/16926075.html

相关文章