You are not logged in.

#1 2014-05-30 02:50:18

mams827
Member
Registered: 2014-05-30
Posts: 2

SSH does not start after reboot

Hi, I have a problem with my sshd daemon. I have updated my OS, I have changed the .pacnew files and tested service with "systemctl start sshd.service" and it worked good. I have run command "systemctl enable sshd.service" and command executed good. But after reboot service does not start.

I have run "systemctl status sshd.service" and result is that service is loaded, but in Activa line it is inactive (dead).

I dont know what is happening, why is it inactive if it is loaded?

Thank you for you help.

Offline

#2 2014-05-30 03:52:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: SSH does not start after reboot

Offline

#3 2014-05-30 04:00:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: SSH does not start after reboot

Not an Installation issue, moving to Newbie Corner...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-05-30 07:44:20

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: SSH does not start after reboot

Have a look at `journalctl -b` or tell us what the journal-entries in `systemctl status sshd` say

Offline

#5 2014-05-30 08:16:15

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,408
Website

Re: SSH does not start after reboot

Post the full output of

systemctl status sshd.service
systemctl status sshd.socket

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2014-05-30 15:13:19

mams827
Member
Registered: 2014-05-30
Posts: 2

Re: SSH does not start after reboot

These are outputs:

$ systemctl status sshd.service
* sshd.service -OpenSSH Daemon
    Loaded: loaded (/usr/lib/systemd/system/ssh.service: enabled)
    Active: inactive (dead)

$ systemctl status sshd.socket
* sshd.socket
    Loaded: loaded (/usr/lib/systemd/system/ssh.socket: enabled)
    Active: active (listening) since Fri 2014-05-30 09:57:52 COT; 12min ago
    Listen: [::]:22 (Stream)
    Accepted: 0; Connected: 0

It looks that socket is working, but service isn't. I have reviewed "journalctl -b" and sshd service isn't shown it.

Last edited by mams827 (2014-05-30 15:25:18)

Offline

#7 2014-05-30 15:56:34

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: SSH does not start after reboot

Did you by any chance enable the socket as well ? I think you can only have one or the other. disable the sshd.service if you plan on using the socket. For the socket to work, you need to disable the ListenAddress and update the ListenStream/port number in sshd.socket file. See the wiki for more details.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB