树莓派系统(Debain)中设置SSH服务开机自启动

  一、方式:

    禁用命令:sudo update-rc.d ssh disable  

    启用命令:sudo update-rc.d ssh enable

  二、chkconfig的方式:

    1、安装:apt-get install chkconfig

    2、运行:chkconfig --list 查看状态。

     运行:chkconfig --level 2345 ssh on

     (说明:Debain中使用chkconfig时,发现不行,才使用方式一实现。)

转载于:https://www.cnblogs.com/songxingzhu/p/6900068.html

你可能感兴趣的:(树莓派系统(Debain)中设置SSH服务开机自启动)