I cant restart sshd

Message
Author
User avatar
Adrian
Developer
Posts: 9272
Joined: Wed Jul 12, 2006 1:42 am

Re: I cant restart sshd

#21 Post by Adrian »

Code: Select all

sudo apt install openssh-server
(you probably have only openssh-client installed).

Charlie Brown

Re: I cant restart sshd

#22 Post by Charlie Brown »

kerogaz wrote: Thu Jul 18, 2024 8:16 am...
The following NEW packages will be installed:
openssh-server openssh-sftp-server ssh
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
...
Preparing to unpack .../openssh-server_1%3a9.2p1-2+deb12u3_amd64.deb ...
Unpacking openssh-server (1:9.2p1-2+deb12u3) ...
...
Setting up openssh-server (1:9.2p1-2+deb12u3) ...

Charlie Brown

Re: I cant restart sshd

#23 Post by Charlie Brown »

kerogaz wrote: Thu Jul 18, 2024 8:17 am root@mx:/etc/ssh# service status sshd
status: unrecognized service

Code: Select all

$ service ssh status
sshd is running.

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

Re: I cant restart sshd

#24 Post by kerogaz »

service ssh restart
ssh: unrecognized service

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

Re: I cant restart sshd

#25 Post by kerogaz »

Dear DukeComposed, don't pretend that you are the smartest, ssh is protocol and sshd is daemon of protocol ssh .....A daemon is a program that runs in the background (without a terminal or user interface), waiting for events and offering some services to carry them out. A good example of a daemon would be a web server waiting for a request to deliver a page, or an SSH server waiting for someone's login.
See better this:
service ssh restart
ssh: unrecognized service
And:

apt list ssh* -i

Listing... Error!
E: input:0-10: error: Expected pattern
ssh_config
^^^^^^^^^^
But ssh works !!!

User avatar
Adrian
Developer
Posts: 9272
Joined: Wed Jul 12, 2006 1:42 am

Re: I cant restart sshd

#26 Post by Adrian »

Adrian wrote: Thu Jul 18, 2024 8:57 am

Code: Select all

sudo apt install openssh-server
(you probably have only openssh-client installed).
Did you do this?

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

Re: I cant restart sshd

#27 Post by kerogaz »

It’s strange that the ssh restarts here after changing the sshd config. For example, in FreeBSD and Archlinux, I restart the service sshd after changing the /etc/ssh/sshd_config.

User avatar
siamhie
Global Moderator
Posts: 3852
Joined: Fri Aug 20, 2021 5:45 pm

Re: I cant restart sshd

#28 Post by siamhie »

kerogaz wrote: Thu Jul 18, 2024 5:06 pm It’s strange that the ssh restarts here after changing the sshd config. For example, in FreeBSD and Archlinux, I restart the service sshd after changing the sshd config.

MX Linux doesn't come with the server installed by default. Have you installed it like Adrian asked in post #26?

ssh-server.jpg
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
FullScale4Me
Posts: 1217
Joined: Fri Jan 08, 2021 11:30 pm

Re: I cant restart sshd

#29 Post by FullScale4Me »

First off

Code: Select all

Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.3_ahs_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Info:
  Init: SysVinit v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0
  alt: 12 Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
I did NOT have the SSH daemon installed so I went to MX Package Installer and selected "SSH Conduit" which completed without error.

Code: Select all

$ sudo service ssh status
[sudo] password for mike:         
sshd is running.
Next, I went to the Uncomplicated Firewall GUI and added an exception rule for SSH.

As a final step, I went to another PC and successfully connected. Nothing additional was installed.

Code: Select all

mike@dell-lt:~
$ ssh 10.0.0.33
The authenticity of host '10.0.0.33 (10.0.0.33)' can't be established.
ED25519 key fingerprint is redacted.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.0.0.33' (ED25519) to the list of known hosts.
mike@10.0.0.33's password: 
Linux OptiPlex7050 6.6.12-1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 6.6-16~mx23ahs (2024-01-18) x86_64
[snip]
You have no mail.
mike@OptiPlex7050:~
Works for me!
kerogaz wrote:Dear DukeComposed, don't pretend that you are the smartest, ssh is protocol and sshd is daemon of protocol ssh .....A daemon is a program that runs in the background (without a terminal or user interface), waiting for events and offering some services to carry them out. A good example of a daemon would be a web server waiting for a request to deliver a page, or an SSH server waiting for someone's login.
Really? Do better, especially when asking for help!

Edit: added both PC identities back to SSH session capture that were snipped in error.
Last edited by FullScale4Me on Thu Jul 18, 2024 5:38 pm, edited 1 time in total.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

User avatar
FullScale4Me
Posts: 1217
Joined: Fri Jan 08, 2021 11:30 pm

Re: I cant restart sshd

#30 Post by FullScale4Me »

kerogaz wrote: Thu Jul 18, 2024 4:34 pm apt list ssh* -i

Listing... Error!
E: input:0-10: error: Expected pattern
Try ssh-conduit-antix (from MX Package Installer info of "SSH Conduit")

Code: Select all

mike@OptiPlex7050:~
$ apt list ssh-conduit-antix -i
Listing... Done
ssh-conduit-antix/now 1.1.4 all [installed,local]
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

Post Reply

Return to “XFCE Desktop Environment”