Forum

Full Version: How do i restart ad reload SSH daemon?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
There is no need to restart sshd because it is not a service, it is spawned by inetd per default
(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?
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
(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
dordle

That means there isn't a service in Xbian that requires restarting? And in the case of SSH, are modifications made in the specified file instantly reflected, or do I need to perform a command?
Reference URL's