linux下面如何设置SSH服务开机启动?

2025-03-20 14:32:18
推荐回答(1个)
回答1:

chkconfig --level 2345 sshd on
--level 指定系统在2345运行级别时,通常在35中开启就行,开启(on)sshd服务,关闭则用(off)

临时控制启动停止则用:/etc/rc.d/init.d/sshd start | stop | restart