How to get services to start without being logged in?

Kernels & Hardware, configuring network, installing services

How to get services to start without being logged in?

Postby mhouser » 2017-10-04 18:24

I am trying to setup a debian webserver. Seems no services will run until I log in.
Installed minimal debian stretch edition with no GUI desktop.

Is there a way to make openssh-server run without a login being required?

I installed these packages:
sudo
net-tools
openssh-server
samba
apache2
ssmtp
mariadb
php7.0
mhouser
 
Posts: 2
Joined: 2017-10-04 18:10

Re: How to get services to start without being logged in?

Postby mhouser » 2017-10-04 18:56

Found the solution on Google almost immediately after posting this.

Code: Select all
sudo update-rc.d ssh defaults
mhouser
 
Posts: 2
Joined: 2017-10-04 18:10

Re: How to get services to start without being logged in?

Postby dilberts_left_nut » 2017-10-04 20:30

Server processes all generally start automatically once installed.
Some require extra configuration and enabling in the config file, but ssh isn't one of them.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4658
Joined: 2009-10-05 07:54
Location: enzed

Re: How to get services to start without being logged in?

Postby debiman » 2017-10-05 06:28

mhouser wrote:Is there a way to make openssh-server run without a login being required?

generic answer:

yes.

Code: Select all
systemctl enable openssh


but chances are it Just Works after a reboot.
User avatar
debiman
 
Posts: 1305
Joined: 2013-03-12 07:18


Return to System configuration

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable