Page 1 of 1

Launch sshd automatically at boot time [SOLVED]

Posted: 29 Nov 2015, 18:47
by djt
hi all,

I want sshd to be run automatically when connected on a network.

I know that I can generate keys as root by the ssh-keygen -A command and
I can start it with the absolute path by the /usr/sbin/sshd start command.

But I don't know how to automate this.

Thanks by advance.

Re: sshd

Posted: 29 Nov 2015, 20:42
by brokenman
chmod +x /etc/rc.d/rc.sshd

Any executable in this folder is run at startup with the start argument.

Re: sshd

Posted: 30 Nov 2015, 14:49
by djt
That works well, thanks a lot :Yahoo!:

Re: sshd

Posted: 30 Nov 2015, 21:52
by brokenman
Great. Please add [SOLVED] to the title, and give the title a more meaningful name so that it might helps others with the same questions in the future.

Re: sshd

Posted: 30 Nov 2015, 21:55
by djt
Ok I'm gonna do it right now.