ssh restart failed

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, Feb 12, 2022.

  1. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi guys,
    i am using ubuntu 20.04 and ispconfig 3
    i want to restart the sshd after changing the sshd_config and get an error:
    Code:
    tomdf@server3:~$ systemctl restart sshd
    Failed to restart sshd.service: Interactive authentication required.
    See system logs and 'systemctl status sshd.service' for details.
    
    
    then i look for the status of sshd and get
    Code:
    tomdf@server3:~$ systemctl status sshd
    ● ssh.service - OpenBSD Secure Shell server
         Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: e>
         Active: active (running) since Fri 2022-01-07 07:00:30 CET; 1 months 6 day>
           Docs: man:sshd(8)
                 man:sshd_config(5)
       Main PID: 3581868 (sshd)
          Tasks: 7 (limit: 9485)
         Memory: 208.8M
         CGroup: /system.slice/ssh.service
                 ├─  51168 gpg-agent --homedir /var/lib/spamassassin/sa-update-keys>
                 ├─3438812 sshd: tomdf [priv]
                 ├─3438814 sshd: tomdf@pts/0
                 ├─3438815 -bash
                 ├─3439355 systemctl status sshd
                 ├─3439356 pager
                 └─3581868 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
    
    
    the syslog does not show any message
    do you have any idea how i can solve this?
    thank you for your help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You must be root user to restart services on Linux. Run:

    sudo systemctl restart sshd
     
    Th0m likes this.
  3. Tom John

    Tom John Active Member HowtoForge Supporter

    omg shame to me :(
    thanks a lot for helping and have a nice weekend
     

Share This Page