1. 查看ssh服务状态

    /etc/init.d/ssh status

  2. 修改配置文件

    vim /etc/ssh/sshd_config

    #PermitRootLogin prohibit-password -->
    PermitRootLogin yes
    
    #PasswordAuthentication yes -->
    PasswordAuthentication yes
    
    #PubkeyAuthentication yes -->
    PubkeyAuthentication yes
    
  3. 启动ssh服务

    /etc/init.d/ssh restart

  4. 开机自启动

    update-rc.d ssh enable

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-11-07
  • 2021-08-09
  • 2022-12-23
  • 2021-10-07
  • 2021-07-12
猜你喜欢
  • 2021-09-11
  • 2021-07-15
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案