1.安装虚拟机VMware Workstation12 PRO

2.在虚拟机上安装kali2.0

3.查看liunx的ip地址ifconfig

4.端口 协议

  (1)RDP协议(桌面协议)3389端口
  (2)SSH协议 22端口
  (3)  telnet协议 23端口

5.ps -aux | grep sshd 查看ssh当前状态

6.启动ssh服务 service sshd start 或 /etc/init.d/ssd restart

   restart 包括了stop,start

7.修改sshd_config文件 vim /etc/ssh/sshd_config

  (1)复制yy

  (2)粘贴p

  (3)删除dd

  (4)插入i

  (5)退出esc

  (6):wq保存退出

  (7):q!强行退出

linux之kali系统ssh服务开启自启动
具体按如下操作进行设置:
照以下步骤进行配置和操作:

1、修改sshd_config文件,命令为:vi /etc/ssh/sshd_config

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

3、将#PermitRootLogin yes的注释去掉 //我的kali中默认去掉了注释

4、启动SSH服务,命令为:/etc/init.d/ssh start // 或者service ssh start

5、验证SSH服务状态,命令为:/etc/init.d/ssh status

6. 添加开机自启动 update-rc.d ssh enable

关闭则为:
update-rc.d ssh disabled
自启动需要重启生效

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2021-09-17
  • 2021-08-05
  • 2021-05-11
  • 2021-07-01
  • 2021-07-07
  • 2021-07-24
猜你喜欢
  • 2021-05-15
  • 2021-07-01
  • 2021-11-21
  • 2021-09-10
  • 2021-06-03
  • 2021-08-19
  • 2021-12-22
相关资源
相似解决方案