Launch sshd automatically at boot time [SOLVED]

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
djt
White ninja
White ninja
Posts: 14
Joined: 29 Nov 2015, 10:05
Distribution: Linux Porteus 3.17.4
Location: france

Launch sshd automatically at boot time [SOLVED]

Post#1 by djt » 29 Nov 2015, 18:47

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.
Last edited by djt on 30 Nov 2015, 21:56, edited 2 times in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: sshd

Post#2 by brokenman » 29 Nov 2015, 20:42

chmod +x /etc/rc.d/rc.sshd

Any executable in this folder is run at startup with the start argument.
How do i become super user?
Wear your underpants on the outside and put on a cape.

djt
White ninja
White ninja
Posts: 14
Joined: 29 Nov 2015, 10:05
Distribution: Linux Porteus 3.17.4
Location: france

Re: sshd

Post#3 by djt » 30 Nov 2015, 14:49

That works well, thanks a lot :Yahoo!:

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: sshd

Post#4 by brokenman » 30 Nov 2015, 21:52

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

djt
White ninja
White ninja
Posts: 14
Joined: 29 Nov 2015, 10:05
Distribution: Linux Porteus 3.17.4
Location: france

Re: sshd

Post#5 by djt » 30 Nov 2015, 21:55

Ok I'm gonna do it right now.

Post Reply