I cant restart sshd

Message
Author
User avatar
kerogaz
Posts: 94
Joined: Thu Dec 09, 2021 5:08 am

I cant restart sshd

#1 Post by kerogaz »

root@mx:/etc/ssh# systemctl restart sshd
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@mx:/etc/ssh#
root@mx:/etc/ssh# systemctl status sshd
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

User avatar
dolphin_oracle
Developer
Posts: 22861
Joined: Sun Dec 16, 2007 12:17 pm

Re: I cant restart sshd

#2 Post by dolphin_oracle »

systemctl is a systemd utility, which you are not using.

use service command

service SERVICENAME action
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
kerogaz
Posts: 94
Joined: Thu Dec 09, 2021 5:08 am

Re: I cant restart sshd

#3 Post by kerogaz »

service sshd restart
sshd: unrecognized service

service ssh restart
ssh: unrecognized servic

Charlie Brown

Re: I cant restart sshd

#4 Post by Charlie Brown »

Menu => "MX Service Manager".

User avatar
dolphin_oracle
Developer
Posts: 22861
Joined: Sun Dec 16, 2007 12:17 pm

Re: I cant restart sshd

#5 Post by dolphin_oracle »

Code: Select all

┌─[dolphin@mxXfceAHS]─[07:33:03 am]──────────────────────────────────────────────────────────────[~]
└─> sudo service ssh restart
Restarting OpenBSD Secure Shell server: sshd.
note the command uses "ssh" rather than "sshd". that's how the init script is labeled.
Last edited by dolphin_oracle on Thu Jul 18, 2024 7:40 am, edited 1 time in total.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
DukeComposed
Posts: 1516
Joined: Thu Mar 16, 2023 1:57 pm

Re: I cant restart sshd

#6 Post by DukeComposed »

kerogaz wrote: Thu Jul 18, 2024 7:20 am service sshd restart
sshd: unrecognized service
Confirm that sshd is installed and running. You can do this with "dpkg -l | grep openssh" and "netstat -na | grep LISTEN | grep 22" (as well as many other ways that are probably more efficient).

User avatar
kerogaz
Posts: 94
Joined: Thu Dec 09, 2021 5:08 am

Re: I cant restart sshd

#7 Post by kerogaz »

Image

User avatar
kerogaz
Posts: 94
Joined: Thu Dec 09, 2021 5:08 am

Re: I cant restart sshd

#8 Post by kerogaz »

I dont see sshd nor ssh

Charlie Brown

Re: I cant restart sshd

#9 Post by Charlie Brown »

Edit (according to your new post): It may be removed somehow. You can (re)install via "MX Package Installer".

User avatar
kerogaz
Posts: 94
Joined: Thu Dec 09, 2021 5:08 am

Re: I cant restart sshd

#10 Post by kerogaz »

But ssh is installed and running beacose I can use ssh for connect to other computer

Post Reply

Return to “XFCE Desktop Environment”