Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to get services to start without being logged in?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
mhouser
Posts: 2
Joined: 2017-10-04 18:10

How to get services to start without being logged in?

#1 Post by mhouser »

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?

#2 Post by mhouser »

Found the solution on Google almost immediately after posting this.

Code: Select all

sudo update-rc.d ssh defaults

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

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

#3 Post by dilberts_left_nut »

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
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#4 Post by debiman »

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.

Post Reply