如何配置使linux启动后ssh服务自动启动

其实很简单,只需要将启动命令添加到/etc/rc.local文件中或者/etc/rc.d/rc.local文件中;

vi /etc/rc.local

添加内容如下:

service sshd start

或者:

/etc/init.d/sshd start

配置完成后,以后每次linux被重启,ssh服务自动启动,就可以通过远程连接到linux了,是不是很方便呢?呵呵

原文地址:https://www.cnblogs.com/fankoko/p/4500764.html