linux启动SSH及开机自动启动

 
1、启动SSH服务 “/etc/init.d/sshd start”。然后用netstat -antulp | grep ssh看是否能看到相关信息就可以了。
2、如何设置把ssh等一些服务随系统开机自动启动?
  方法一:[root@localhost ~]# vi /etc/rc.local
加入:service sshd start 或  /etc/init.d/sshd start
方法二:进入/etc/rc.d然后进入相应运行
级别如rc3.d.将K打头的ssh服务改为S开头的
原文地址:https://www.cnblogs.com/huapox/p/3299889.html