如何关闭linux下的ssh服务

2025-02-23 16:00:41
推荐回答(2个)
回答1:

chkconfig --level 2345 sshd on --level 指定系统在2345运行级别时,通常在35中开启就行,开启(on)sshd服务,关闭则用(off) 临时控制启动停止则用:/etc/rc.d/init.d/sshd start | stop | restart

回答2:

killall sshd -9

service sshd stop