linux sshd 远程服务加入开机自启动

通过chkconfig可以将sshd加入到系统服务中。 
chkconfig sshd on
可以再查看sshd的运行级别状态: 
chkconfig --list sshd

sshd的状态说明:

    0:关闭  

    1:关闭 

    2:启用  

    3:启用  

    4:启用 

    5:启用  

    6:关闭 


   以后重启之后,就可以直接通过ssh远程访问了。

转载于:https://my.oschina.net/atlantisay/blog/426000

你可能感兴趣的:(linux sshd 远程服务加入开机自启动)