Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

How do i restart ad reload SSH daemon?
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
How do i restart ad reload SSH daemon?
21st Mar, 2022, 08:53 PM
Post: #1
postcd Offline
Registered
Posts: 31
Joined: Nov 2021
Reputation: 0
How do i restart ad reload SSH daemon?
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
Visit this user's website Find all posts by this user
22nd Mar, 2022, 01:53 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How do i restart ad reload SSH daemon?
There is no need to restart sshd because it is not a service, it is spawned by inetd per default
Find all posts by this user
22nd Mar, 2022, 03:39 AM
Post: #3
postcd Offline
Registered
Posts: 31
Joined: Nov 2021
Reputation: 0
RE: How do i restart ad reload SSH daemon?
(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?
Visit this user's website Find all posts by this user
22nd Mar, 2022, 03:59 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How do i restart ad reload SSH daemon?
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
Find all posts by this user
7th May, 2024, 02:14 PM
Post: #5
ombingvast Offline
Banned
Posts: 1
Joined: May 2024
RE: How do i restart ad reload SSH daemon?
(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?
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
Sad [SOLVED] Kodi reload loop after update Darkguy 3 8,910 16th May, 2016 06:40 AM
Last Post: Nachteule

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 07:16 PM Powered By MyBB, © 2002-2025 MyBB Group.