Forum
How do i restart ad reload SSH daemon? - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: How do i restart ad reload SSH daemon? (/thread-4144.html)



How do i restart ad reload SSH daemon? - postcd - 21st Mar, 2022 08:53 PM

Hello,

after I have modified /etc/ssh/sshd_config how do i reload and restart SSH daemon?

$ systemctl restart sshd
Quote:System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

$ /etc/init.d/ssh restart
Quote:Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart
/etc/init.d/ssh: 58: initctl: not found

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop ssh ; start ssh. The restart(8) utility is also available.
/etc/init.d/ssh: 106: start: not found

$ service restart sshd
Quote:-bash: service: command not found

I dot want to reboot yet and want to use CLI, ideally no Xbian scripts and such (if no other way then i would, but how).

$ xbian-config
Quote:-bash: xbian-config: command not found



RE: How do i restart ad reload SSH daemon? - Nachteule - 22nd Mar, 2022 01:53 AM

There is no need to restart sshd because it is not a service, it is spawned by inetd per default


RE: How do i restart ad reload SSH daemon? - postcd - 22nd Mar, 2022 03:39 AM

(22nd Mar, 2022 01:53 AM)Nachteule Wrote:  There is no need to restart sshd because it is not a service, it is spawned by inetd per default

I do not know what that means. So there is no service in Xbian that needs to be restarted? And in ssh case, changes made in mentioned file are reflected immediately or which command to run?


RE: How do i restart ad reload SSH daemon? - Nachteule - 22nd Mar, 2022 03:59 AM

As I said, there is no dedicated sshd service, so it cannot be restarted.
inetd listens on the ssh port and starts the sshd on request. And after a while of inactivity (I don't know how long that is at the moment) the sshd is stopped again.
The next time it is started, the new settings are used